Garry's Mod Wiki

GM:PropBreak

void GM:PropBreak( Player attacker, Entity prop )

Description

Called when a prop has been destroyed.

Arguments

1 Player attacker
The person who broke the prop.
2 Entity prop
The entity that has been broken by the attacker.

Example

This kills a player when a person breaks a prop (i.e. a wooden crate).

hook.Add("PropBreak", "PropVengeance", function(client, prop) client:Kill() end)

Page Links


Special Pages


Wikis

?

Render Time: 22ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 9
Render Body 0
Render Sidebar 6