gametechmods
Robot Arena => General Support => Topic started by: System32 on February 19, 2009, 09:20:30 AM
-
I've Tried to AI two LW Bots With the Spinner AI For My AI pack, the first is a HS Called Alpha 2, the Second a VS Called Beta. When I run them, they face the wrong way. I've treid To fix it by changing the Direction in the workshop, but that does not work. Any help?
-
I had the same problem, until I learned the nose function. Hard to explain, but it lets you set the "nose" of the bot.
-
Nose?
-
Give me some time to make a screen shot, I'm at school at the moment, and I will get an image up when get home.
-
you need to change their direction in the AI bindings.py - changing it in the workshop doesn't effect it's orientation:
[font=courier] list.append(("M.O.E.","DirectionalSpinner",{'invertible':True,[COLOR=Red]'nose':math.pi[/COLOR],'range':99,'radius':.5,'turn':30,'turnspeed':2.5,'weapons':(12,13,25,26,27,28,29,30)}))[/font]
here, i am using the example of DSL M.O.E. The specific code to orientate M.O.E. 180° is in red.
For more guidance on this, read the section from Starcore's AI tutorial:
https://gametechmods.com/RA2wiki/index.php?title=How_to_AI_your_bot#Fixing_orientation
-
And it's in radians, so:
0 degrees - 0 radians
90 degrees - pi/2 radians
180 degrees - pi radians
270 degrees - 3pi/2 radians
360 degrees - 2pi radians
-
Here's an easy paradigm (post #54): https://gametechmods.com/forums/showthread.php?t=1103&page=2 (https://gametechmods.com/forums/showthread.php?t=1103&page=2)
Paste it at the top of your Bindings.py, for a reference.
..
-
Thanks for all the support.
I promise what I'm making won't dissapoint.
New Problem: I've made some HS and VS, but none of their weapons Work, As in, The won't spin up. Any help?
-
You must label the command "spin"
-
Lurk.
-
I did, that's the problem. Perhaps it's just The "Spinner" AI.