Garry's Mod Wiki

Entity:GetPhysicsAttacker

Entity:GetPhysicsAttacker

Player Entity:GetPhysicsAttacker( number timeLimit = 1 )

Description

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

Arguments

1 number timeLimit = 1
The time to check if the entity was still a proper physics attacker.

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

Returns

1 Player
The player. If entity that was set is not a player, it will return NULL entity.

Special Pages


Wikis

?

Render Time: 19ms

DB GetPage 2
Generate Html 2
SaveChanges (1) 6
Render Body 0
Render Sidebar 7