Jump to content
Sign in to follow this  
Wire

Quick question: forcing AI to stand up universally

Recommended Posts

Heya, I know of the command:

{_x setunitpos "UP"} foreach thislist

which would force any AI to stand up and remain standing. But due to my laziness I wanted to know if it was possible to make it so that instead of having to go to all the units and add that into the activation trigger, if it was simply possible to just add that command into the trigger, but also just add another command which would be set for all opfors to remain standing.

Hope its easy to understand, but simply, Id like to make all Opfors remain standing in a mission, but i wanted to know if there was a faster way to make all of them stand with this command, without having to place the command into each of their init fields.

Cheers

Share this post


Link to post
Share on other sites

Create a group and type what you typed

{_x setunitpos "up"} foreach unit group this

Copy and place them over the map and now you have many opfors standing....

can't find more than this,i am lazy too:D:yay:

Share this post


Link to post
Share on other sites
forEach Units;

try this - now add inside a filter:

{ if (_x side == EAST) then { _x setunitpos "UP"; }; } forEach Units;

Share this post


Link to post
Share on other sites

great cheers guys, thanks for the help

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  

×