reedkiller 0 Posted August 20, 2003 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
Taurus 20 Posted August 20, 2003 Uhm, I'm pretty sure there are such scripts allready, you have a start there, and by doing a search on these boards you might or even will find a respawnscript. another great place to search is: http://www.ofpec.com/editors....eopts=1 Share this post Link to post Share on other sites
RED 0 Posted August 20, 2003 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
reedkiller 0 Posted August 20, 2003 I have searched the forums and OFPEC Thanks RED - I will try that Share this post Link to post Share on other sites
bn880 5 Posted August 20, 2003 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
reedkiller 0 Posted August 21, 2003 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 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