Garry's Mod Wiki

Revision Difference

Entity:GetPhysicsAttacker#515573

<function name="GetPhysicsAttacker" parent="Entity" type="classfunc">⤶ <description>Returns player who is claiming kills of physics damage the entity deals.</description>⤶ <realm>Server</realm>⤶ <args>⤶ <arg name="timeLimit" type="number">The time to check if the entity was still a proper physics attacker.&#xA;&#xA;&lt;note&gt;Some entities such as the Combine Ball disregard the time limit and always return the physics attacker.&lt;/note&gt;</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="Player">The player. If entity that was set is not a player, it will return NULL entity.</ret>⤶ </rets>⤶ </function>⤶ ⤶