Gamemode.PropBreak
From GMod Wiki
Event Hook | |
Hook Name | PropBreak |
Syntax | GM:PropBreak( Entity attacker, Entity prop ) |
Description | Called whenever a prop is destroyed. |
Returns | Nil |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PropBreak]Gamemode.PropBreak [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional Notes
- The killer seems to only be a valid entity when a player destroys the prop with a regular gun. Explosions don't appear to give a killer, regardless of player involvement.