Ok, this is how it is...
i have a suicide script with make the soldier explode on death, I've tried to make this work with respawned soldiers to, but is is wath happend:
dude1 dies, explodes as he shoud.
X sec later he respawn. but instead dude1s corpse explodes time after time. (with 15 sec delay ~15)
Now. how to make the new dude1 explode instead?
The script (made orgilany by Armstrong):
________________________
_bomber = _this select 0
_target = _this select 1
_distance = _this select 2
_remove = _this select 3
_combatmode = _this select 4
#start
_bomber setcombatmode "_combatmode"
_bomber setspeedmode "full"
_bomber setunitpos "UP"
~0.001
? hoppaiplasket=_remove : removeallweapons _bomber
#over
_bomber commandmove getpos _target
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
? (_bomber distance _target) < _distance : goto "booom"
? !(alive _bomber) : goto "booom"
~0.1
goto "over"
#booom
bomb="heat120" camcreate getpos _bomber
bomb="shell120" camcreate getpos _bomber
~15
goto "start"
exit
___________