Home   Help Search Login Register  

Author Topic: Whole group getting a position  (Read 1062 times)

0 Members and 1 Guest are viewing this topic.

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
Whole group getting a position
« 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..
Who's hyped for Arma4, long live Arma!

Offline JamesF1

  • Editors Depot Staff
  • *****
    • JamesBurgess.co.uk
Re: Whole group getting a position
« Reply #1 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.

Offline NightJay0044

  • Former Staff
  • ****
  • Let's make OFPEC great again
    • My Steam Workshop
Re: Whole group getting a position
« Reply #2 on: 19 Mar 2009, 21:43:35 »
thanks....now I can do what I need to in the mission..... :)
Who's hyped for Arma4, long live Arma!