Home   Help Search Login Register  

Author Topic: Script that deletes dead bodies  (Read 446 times)

0 Members and 1 Guest are viewing this topic.

SH@dow 113

  • Guest
Script that deletes dead bodies
« on: 27 Jun 2004, 21:14:37 »
Hi all i need a script that deletes enemie soldiers when they are dead. I tried to find it on the site but didn't found it  ???.

So if anyone could be of any help thx vrry much.

Thx in advance.

CrashnBurn

  • Guest
Re:Script that deletes dead bodies
« Reply #1 on: 28 Jun 2004, 07:11:57 »

SH@dow 113

  • Guest
Re:Script that deletes dead bodies
« Reply #2 on: 28 Jun 2004, 12:13:29 »
Quote
;--------------------------------------------------------------------------
;-to call this script simply put this line into the units initialization:
;this addeventhandler [{killed},{_this exec {rid.sqs}}]
;-works with createunit command.(units initialization must be in quotes!)
;--------------------------------------------------------------------------
_unit = _this select 0
~60 + (random 60)
_unit removealleventhandlers "killed"
deletevehicle _unit

Thx allot ;)