Jump to content
Sign in to follow this  
starky396

Make units from sites module stand up?

Recommended Posts

I am trying to make units that have spawned via the sites module stand up and always stand up. Is there any way to do this? I know if I put soldiername SetUnitPos "Up", that will work, but it only works on units spawned by the editor. How could I make them do this with the sites module though?

Share this post


Link to post
Share on other sites

Get the position of the module (enter a name in the 'name' field; I use 'site' here) and use nearEntities like so:

{
   _x setUnitPos "up";
} forEach ((getPosATL site) nearEntities ["Man", 200]);

Share this post


Link to post
Share on other sites

Thanks, that worked perfectly. However, I tried to put in Dostop like this;

{ 
   DoStop _x"; 
} forEach ((getPosATL site) nearEntities ["Man", 200]);  

And it doesn't work.

Share this post


Link to post
Share on other sites

You do not need the " mark after _x. doStop also accepts an array of units, so you could try:

doStop ((getPosATL site) nearEntities ["Man", 200]);

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  

×