Home   Help Search Login Register  

Author Topic: Foreachunits this (again)  (Read 945 times)

0 Members and 1 Guest are viewing this topic.

unkie

  • Guest
Foreachunits this (again)
« on: 13 Jun 2003, 11:18:39 »
hi i was wondering, usually for a single guy you put this setbehaviour "safe" or 'this setcombatmode "blue"....is there a command for a whole group which can be used with these types of commands?  something similar to the "x_moveincargo foreachunits this" command...

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re: Foreachunits this (again)
« Reply #1 on: 13 Jun 2003, 13:05:05 »
hmm - most of it you figured out by yourself, so here's the
correct syntax for that:

"_x setbehaviour {SAVE}" foreach units this

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: Foreachunits this (again)
« Reply #2 on: 13 Jun 2003, 13:33:12 »
@ chris - not exactly u forgot somin - also it safe not save ;)

"_x setbehaviour {SAFE}" foreach units Group this

LCD OUT
« Last Edit: 13 Jun 2003, 13:33:28 by LCD »
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

deaddog

  • Guest
Re: Foreachunits this (again)
« Reply #3 on: 13 Jun 2003, 18:14:34 »
You don't have to set each units behaviour individually.

Use:  groupname setbehaviour "safe"

or

groupname setcombatmode "red"

or

(group unitname) setbehaviour "safe"

or if it is in the init line of a unit:

(group this) setbehaviour "safe"

 :)
« Last Edit: 13 Jun 2003, 18:17:49 by deaddog »