Entity/GetPhysicsAttacker

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

Description

Returns player who is claiming kills of physics damage the entity deals.

Arguments

number timeLimit

The time to check if the entity was still a proper physics attacker.

NOTE

Some entities such as the Combine Ball disregard the time limit and always return the physics attacker.

Returns

Player

The player. If entity that was set is not a player, it will return NULL entity.
Personal tools
Navigation