Player falldamage

From EventScripts Community Encyclopedia

Description

player_falldamage executes when a player falls and recieves damage.

Variables

Variables specific to player_falldamage that are expanded:

     event_var(userid)
           The userid of the player who fell and took damage.
     event_var(damage)
           The ammount of damage taken from the fall.

Variables Specific to the Player That Fell:

     event_var(es_username)
           The name of the player that fell
     event_var(es_steamid)
           The steamid of the player that fell
     event_var(es_userteam)
           The team # of the player that fell
     event_var(es_userhealth)
           The health of the player that fell
     event_var(es_userarmor)
           The armor of the player that fell
     event_var(es_userdeaths)
           The number of deaths of the player that fell
     event_var(es_userkills)
           The number of kills of the player that fell
     event_var(es_userweapon)
           The name of the weapon of the player that fell

Examples

//If a player falls, tell them how much damage they took.
event player_falldamage
{
       es_tell event_var(userid) #green You just fell and took event_var(damage) damage!
}
blog comments powered by Disqus