Jump to content

How to cancel falling damage


-Blaze-

Recommended Posts

Posted
function cancelFallDamage(attacker) 
   if not attacker then 
      cancelEvent() 
   end 
end 
addEventHandler("onClientPlayerDamage",getLocalPlayer(),cancelFallDamage) 

Posted
The code above cancels all damage made without an attacker, not necessarily just falling damage.

that should be obvious, though i don't have time to create much more complicated script at the moment.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...