Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Delete dead units on a trigger  (Read 649 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 »