Break breakable

From EventScripts Community Encyclopedia

Description

break_breakable executes EVERY TIME A FUNC_BREAKABLE IS BROKEN.

Variables

Variables Specific to break_breakable That Are Expanded:

     event_var(entindex)
           The Valve-assigned entity index of the func_breakable
     event_var(userid)
           The userid of the player that broke the func_breakable
     event_var(material)
           The material type of the broken object

Variables Specific to the Player That Broke the Func_Breakable:

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

The material types are:

1 Glass
2 Metal
4 Flesh
8 Wood
16 Smoke (temp entities)
32 Transparent (temp entities)
64 Concrete
128 Slave
blog comments powered by Disqus