Garry's Mod Wiki

Revision Difference

util.IsValidPhysicsObject#565551

<function name="IsValidPhysicsObject" parent="util" type="libraryfunc"> <description>Checks if given numbered physics object of given entity is valid or not. Most useful for ragdolls.</description> <realm>Shared and Menu</realm>⤶ <description>Checks whether the given numbered physics object of the given entity is valid or not. Most useful for ragdolls.</description> <realm>Shared</realm>⤶ <file line="9-L30">lua/includes/extensions/util.lua</file> <args> <arg name="ent" type="Entity">The entity</arg>⤶ <arg name="physobj" type="number">Number of the physics object to test</arg>⤶ <arg name="ent" type="Entity">The entity to take.</arg>⤶ <arg name="physobj" type="number">Number of the physics object to test.</arg>⤶ </args> <rets> <ret name="" type="boolean">true is valid, false otherwise</ret>⤶ <ret name="" type="boolean">`true` that's valid, `false` otherwise.</ret>⤶ </rets> </function>