Home   Help Search Login Register  

Author Topic: foreach?  (Read 917 times)

0 Members and 1 Guest are viewing this topic.

karz

  • Guest
foreach?
« on: 14 Sep 2002, 12:14:54 »
Is there a way to get alot of soldiers (6 squads) standing in attention, without giving a name to EVERY damn moron?

Maybe using foreach.... The problem is that i don`t know how.
 :help:

Offline Tomb

  • Contributing Member
  • **
  • in2 Metal? Go 2 my sig
Re:foreach?
« Reply #1 on: 14 Sep 2002, 14:59:18 »
Howsabout letting a trigger cover the boys & tell them how to behave  :o :D


axis  a = 85 (or whatever) ;  axis b = 15 (or alike)

activation = anyoneWithAgunOrAcamoThong

And the famous "On Activation" field should then probably read som'n like this :

"_x SetBehaviour ""Careless""" foreach thisList; "_x switchmove ""code""" foreach thisList

...where code is the choise of switchMove command

    NOTE the "s  :o

They work like that in RES; so if ya don't have the RES upgr. then forget it all.
That would take a workaround  :P ::)

The thing is to make them CARELESS, ( remember to set their "special" fíeld to NONE ), plus
setting the correct "switchmove" command via the trigger.

If ya wanna make 'em all watch some object, so that they stand in a proper line-up,
just add :

"_x dowatch Object1" foreach thisList

to the trigger.

------------------------

PS. I think the trigger also needs a

"DoStop _x" foreach ThisList

to prevent them from running around like headless chickens!!!


Hope I don't sound too screwed up here, m8  :P ;D

laterz  :-*



« Last Edit: 14 Sep 2002, 15:01:59 by Tomb »

karz

  • Guest
Re:foreach?
« Reply #2 on: 14 Sep 2002, 17:21:57 »
Absolutely clear. Thanks Tomby!  :afro: