OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Wedgie_Mutha on 11 Nov 2003, 11:47:01
-
Hi all,
Grovelling apologies, I know this has been asked before but I still have'nt found a good solution.
I am a scripting dunce, so I need some advice on how to create a trigger that, when activated will delete all dead units in it's radius.
I have tried the scripts in the Editors Depot here, but they've not really helped. Maybe Im missing something.
Any ideas?
Thanks in advance.
Wedgie.
-
I asked something like this before.
First, you need a script to check if there are dead units.
http://www.ofpec.com/editors/browse.php?browsewhat=2&start=50
Look for: dead unit eraser
Put the right script line into the 'Condition' field of the trigger
Then put this in the 'On Activation' field of the trigger
"DeleteVehicle _x" forEach thislist
You just need the Dead Unit Eraser to activate with what you want it too ::) ::) ::)
Stupid me...
Beware the GrimMonkey