Jump to content
Sign in to follow this  
SWEFIDDE

Ai to stand up in a battle

Recommended Posts

How do i fores the AI to stand up when they are in a battle?

becouse when the ai are in a rooftops and they se enmey they lay down and cant shot!

like in a trigger opfor

getpos "up"

can some one plz help me! thx!

Share this post


Link to post
Share on other sites

in the Ai's group leader put:

E_grp1 = group this; {_x setunitpos "UP"} ForEach units E_grp1;

wink_o.gif

Share this post


Link to post
Share on other sites

Or just write this in the init-field of the unit <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this setunitpos "UP"

Share this post


Link to post
Share on other sites

And use this if you want them to crouch:

this setUnitPos "middle"

Share this post


Link to post
Share on other sites

thank you guys for the answers! but do any of you now how ta make trigger whit setpos up.. for example when russian come in the trigger they cant lat down?

Share this post


Link to post
Share on other sites

hi there every one!!! i have fixed the problem!!

{_x setunitpos "UP"} ForEach thislist  

if you put this in a trigger and in act field the ai cant lay down!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×