OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: SH@dow 113 on 27 Jun 2004, 21:14:37

Title: Script that deletes dead bodies
Post by: SH@dow 113 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.
Title: Re:Script that deletes dead bodies
Post by: CrashnBurn on 28 Jun 2004, 07:11:57
check my reply to this thread-

http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=17978
Title: Re:Script that deletes dead bodies
Post by: SH@dow 113 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 ;)