Entity:SetPhysicsAttacker

From Garry's Mod
Jump to: navigation, search
 Entity:SetPhysicsAttacker( )

Description

Sets the player who gets credit if this entity kills something with physics damage within the time limit.

NOTE This can only be called on props.

Arguments

Player ent

Player who gets the kills. Setting this to a non-player entity will not work.

Arguments

number timeLimit=5

Time in seconds until the entity forgets its physics attacker and prevents it from getting the kill credit.
Personal tools
Navigation