OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Sol Fire on 07 Apr 2003, 01:27:37
-
how would i use a trigger to get a list of units inside the trigger and use the list to change the unit's side to west?
i have a group of Civilian's but East wont shoot at them like they should so i need the civilians to change side to west
i could group them with a West Soldier but then i have to delete all their waypoints to group them and then i have a West Soldier somewhere he shouldnt be!
and after the attack i need the list so i can delete the Civilians
-
ok i no longer need an answer on how to change the sides i just went into the Mission.sqm file and made the men West
but i still would like to know how to get a list of units inside a trigger so i can Deletevehicle them when they arnt needed without having to use every vehicle's name
-
The units which are in a trigg'er's area and would activate the trigger are given in the array thislist
If the trigger was West present then for a death zone you could have
"_x setdammage 1" forEach thislist
syntax not guaranteed but you get the idea.