Garry's Mod Wiki

util.IsValidPhysicsObject

  boolean util.IsValidPhysicsObject( Entity ent, number physobj )

Description

Checks if given numbered physics object of given entity is valid or not. Most useful for ragdolls.

Arguments

1 Entity ent
The entity
2 number physobj
Number of the physics object to test

Returns

1 boolean
true is valid, false otherwise