Home   Help Search Login Register  

Author Topic: delete body  (Read 1203 times)

0 Members and 1 Guest are viewing this topic.

Cooba

  • Guest
delete body
« on: 28 Jan 2004, 00:17:32 »
How can we make KIA players bodies to dissapear...after fullfiling certain condition ??

I need this to my TDM mission.
Thanx for Help :)

CptBravo

  • Guest
Re:delete body
« Reply #1 on: 28 Jan 2004, 01:20:43 »
Here is a script by someone who sadly I can not remember who!

So whomever he is, he gets the credit!

; Select the Unit
_unit = _this select 0
;-Delay the delete after death
~30

;  delete the unit
deletevehicle _unit
exit


and in the init field of the unit you want deleted after it gets killed place :

this addeventhandler ["killed", {_this exec "erase.sqs"}];


Cooba

  • Guest
Re:delete body
« Reply #2 on: 28 Jan 2004, 03:00:10 »
Ok, its working. Thanx Cpt.Bravo

Only thing i changed is delay the delete after death.
I need some condition, not time. I did it simple:

_unit = _this select 0
goto "loop"

#loop
~15
? (mycondition) : goto "next"
goto "loop"

#next
deletevehicle _unit
exit

I know its very simple but work good  ;)

Sorry for (maybe) incorrect English  ::)