Player footstep

From EventScripts Community Encyclopedia

Contents

Description

player_footstep executes on EVERY PLAYER THAT MAKES AN AUDIBLE FOOTSTEP.

Variables

Variables Specific to player_footstep That Are Expanded:

     event_var(userid)
           The userid of the player that ran


Variables Specific to the Player That Moved:

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

Examples

//If a player runs, tell them. 
event player_footstep
{
       es_tell event_var(userid) #green Everyone can hear you running!
}

Notes

  • player_footstep does not trigger every time a player moves only every time a player makes a footstep!
  • player_footstep also requires sv_footsteps to be set to 1 or else it will not trigger!
blog comments powered by Disqus