Jump to content
Sign in to follow this  
logan83

Ordering domove to many units or a side

Recommended Posts

Hello everyone! How could i give an order to multiple units, whith no names and no in a group? sorry about my english... :confused: i try to explain my self better, i have many units in the map, some units added by editor, some spawned aleatory by scripts. All units are Opfor Units... and i Want all these units do domoeve to Point A when i Kill the unit Called TargetOne...

Some Help?

Share this post


Link to post
Share on other sites

1: Place a marker where you want them to move, name it anyMarkerName, or change name to whatever you like.

2: Then place a trigger with this info:

trigger condition

!alive TargetOne

on activated:

{
if (side _x == east) then {
	_x doMove (getMarkerPos "anyMarkerName");
};
} foreach allUnits;

Alternatively do the domove for groups.

And also you can change

(getMarkerPos "anyMarkerName")

to some location format.

Share this post


Link to post
Share on other sites

oh greate! works like a charm! thanks. i was triying a similar way, but i Forget this semicolon... :(

{if (side _x == east) then {_x doMove (getPos Escape_plane);}[color="#FF0000"];[/color]}foreach allUnits;

thanks again buddy!

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  

×