Home   Help Search Login Register  

Author Topic: GroupId  (Read 505 times)

0 Members and 1 Guest are viewing this topic.

Knut Erik

  • Guest
GroupId
« on: 01 Mar 2003, 19:05:58 »
I'm sure this question have been asked before, but i did not find it..  :P
Is it posible to set a name of a whole group.
Id for the whole group so that you can setbehaviour to the whole group...
Exsample:
Instead of this. Man1 setbehaviour "safe";Man2 setbehaviour "safe";Man3 setbehaviour "safe"

This:
Group1 setbehaviour "safe"


Any ideas??

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:GroupId
« Reply #1 on: 01 Mar 2003, 19:29:06 »
group1 = group this   (goes in leader's init field)

"_x setbehaviour "safe"" foreach units group1

syntax not guaranteed, check it in the command ref

alternatively, you can set the behaviour of the group in their next waypoint.

and I have a feeling that if you set the behaviour of a group leader his loons do the same thing anyway.
Plenty of reviewed ArmA missions for you to play

Knut Erik

  • Guest
Re:GroupId
« Reply #2 on: 02 Mar 2003, 10:47:28 »
Thanks a lot!  ;D
Now I can continiue on my mission!