Home   Help Search Login Register  

Author Topic: Delete dead units on a trigger  (Read 457 times)

0 Members and 1 Guest are viewing this topic.

Wedgie_Mutha

  • Guest
Delete dead units on a trigger
« 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.

GrimMonkey

  • Guest
Re:Delete dead units on a trigger
« Reply #1 on: 11 Nov 2003, 16:47:37 »
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
« Last Edit: 11 Nov 2003, 16:54:14 by GrimMonkey »