Jump to content

Reviving the player on death


ethanwdp

Recommended Posts

Already have done that. It failed in absolutely gigantic hordes, and sudden damage (ex: falling)

CheatCoreCM.DoTickCheats = function() -- also does some other things    if getPlayer():getBodyDamage():getHealth() <= 5 and CheatCoreCM.DoPreventDeath == true then -- failed so often that I couldn't have the health check lower than 5        getPlayer():getBodyDamage():RestoreToFullHealth();    endendEvents.OnTick.Add(CheatCoreCM.DoTickCheats);
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...