OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: karz 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:
-
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 :-*
-
Absolutely clear. Thanks Tomby! :afro: