OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
Just a guess, but maybe:
{_x setbehaviour "safe"} foreach thislist
Try it out anyway...........experiment...
Planck
-
it's because strings can be written in two ways in "" or in{} you could even do this "_x setbehaviour {safe}" aswell