OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Nightsage on 17 Dec 2004, 23:19:18

Title: mass commands
Post by: Nightsage on 17 Dec 2004, 23:19:18
ive been trying to figure out how to have a script apply to a general group. I have a script that will kill a large group( "_x setdamage 1" foreach thislist) if you put that into a trigger it will kill anything that enters it but i want to know how i can put something into a trigger that will do something like set everyones behaviour to "aware" or "safe" or whatever or maybe make everyone run to a certain area or whatever. I don't know if anyone will have a clue abouit what I'm talking about but if you do I would love to hear from you.
Title: Re:mass commands
Post by: Planck on 17 Dec 2004, 23:31:23
Just a guess, but maybe:

{_x setbehaviour "safe"} foreach thislist

Try it out anyway...........experiment...


Planck
Title: Re:mass commands
Post by: RedHouse on 18 Dec 2004, 06:12:15
it's because strings can be written in two ways in "" or in{} you could even do this "_x setbehaviour {safe}" aswell