OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Kendo J on 04 Apr 2005, 16:51:55
-
Ok I have this problem that I have an area that is a spawn position... now as the baddies run away from this area into different positions they all get killed respectively. but some important units are already on the map. I don't want to delete them.
All the spawned units are resistance and east.
I need a good way of selectivley deleting units without using a script... just a simple trigger activation . my delete triggers will not activate if the player is present so you never see any spawing or deleting near you.
What i need is a command that allows me to delete all the resistance then later on the same one of east.
can anyone tell me the syntax for these commands?
-
reallly no idea how the script will be... but I think you can use somethig wich "foreach unit this List" and set te trigger to setpos whereever is the player... and all dead enemy units inside the trigger won't be deleted...
sorry DK how to write it.. just an idea
Bye