Jump to content
Sign in to follow this  
reedkiller

Small request

Recommended Posts

I would be very grateful to any person who could create a script that simulates re-spawn in single player. Currently I use a trigger with "Getdammage unitname > 0.8" and then "unitname set dammage 0 ; unitname setpos...."

This is however flawed as it does not work well if you die in a car and it does not work if you have a very violent and quick death I.E Blown to hell

PLEASE HELP

Thankyou

Share this post


Link to post
Share on other sites

You could use the hit eventhandler to set the vehicles damage back to 0, this will work faster than detecting what its damage level is.

RED

Share this post


Link to post
Share on other sites

Yes also try the dammaged event handler together with hit. In case you go swimming in that acid ocean.

Share this post


Link to post
Share on other sites

Thanks for the response -

I used "unitname addeventhandler ["hit",{unitname setdammage 0.00001 }] ; unitname addeventhandler ["dammaged",{unitname setdammage 0.00001 }]"

I also used "setpos" to send the unit to a respawn ,"playmove" to show a death animation and I reset the ammo loadout smile_o.gif

This also allows you dammage you car/tank/air as long as you dont die! thanks!!!!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×