Jump to content

Falling


Phenom

Recommended Posts

Posted

Cancel the event only in certain conditions. I don't know what the attacker and weapon would be shown in the case of falling damage, but you can try outputting them and then use those conditions.

-

Posted

According to the Killmessages resource, falling dead is weapon ID 54:

Clientside:

function stopFallingDamage ( attacker, weapon, bodypart ) 
    if ( weapon == 54 ) then 
        cancelEvent() 
    end 
end 
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), stopFallingDamage ) 

Learn Lua - Learn to script - GUI scripting

Scripter tools - Find/fix errors yourself(!)

Don't pm me for scripting help, keep it for the Scripting subforum!

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...