OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: NightJay0044 on 19 Mar 2009, 21:05:10

Title: Whole group getting a position
Post by: NightJay0044 on 19 Mar 2009, 21:05:10
Hi, how do you get a whole group to get a certain position? I don't know the code..

I tried this;

"_x domove "GetPos1" foreach units group1"

but that doesn't work, what's the correct syntax?

Thanks..
Title: Re: Whole group getting a position
Post by: JamesF1 on 19 Mar 2009, 21:11:52
The following would serve to move the units to the position of the player (have added brackets for clarity).
Code: [Select]
{ _x doMove (getPos player); } forEach (units group1)
However, it's usually far better to just give the group leader a new waypoint, instead.
Title: Re: Whole group getting a position
Post by: NightJay0044 on 19 Mar 2009, 21:43:35
thanks....now I can do what I need to in the mission..... :)