Garry's Mod Wiki

Garry's Mod Wiki

  Entity:SetPhysicsAttacker( Player ent, number timeLimit = 5 )

Description

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

Only functional on props, "anim" type SENTs, vehicles and a few other select entities.

Arguments

1 Player ent
Player who gets the kills. Setting this to a non-player entity will not work.
2 number timeLimit = 5
Time in seconds until the entity forgets its physics attacker and prevents it from getting the kill credit.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...