GM:PropBreak

From Garry's Mod
Jump to: navigation, search
 GM:PropBreak( )

Contents

Description

Called when a prop has been destroyed.

Arguments

Player attacker

The person who broke the prop.

Arguments

Entity prop

The entity that has been broken by the attacker.

Examples

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)


Personal tools
Navigation