Garry's Mod Wiki

Tool:GetPhys

  PhysObj Tool:GetPhys( number id )

Description

Retrieves an PhysObj previously stored using Tool:SetObject. See also Tool:GetEnt.

Arguments

1 number id
The id of the object which was set in Tool:SetObject.

Returns

1 PhysObj
Associated PhysObj with given id. If it wasn't specified, returns current PhysObj of associated Entity.