Garry's Mod Wiki

Entity:SetPhysicsAttacker

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.

This can only be called on props, "anim" type SENTs and vehicles.

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.

Page Links


Special Pages


Wikis

?

Render Time: 23ms

DB GetPage 3
Generate Html 3
SaveChanges (1) 8
Render Body 0
Render Sidebar 6