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
-
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.
-
check my reply to this thread-
http://www.ofpec.com/yabbse/index.php?board=6;action=display;threadid=17978
-
;--------------------------------------------------------------------------
;-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 ;)