Entity.GetPhysicsObjectNum
From GMod Wiki
| Function | |
| Syntax | Entity:GetPhysicsObjectNum( Integer obj_num ) |
| Description: | |
| Use this to grab the physics object in a ragdoll | |
| Returns: | Physobj |
| In Object: | Entity |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.GetPhysicsObjectNum]Entity.GetPhysicsObjectNum [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Use GetPhysicsObjectCount to get the total number of physics objects.
- Entities generally only have 1 physics object. The exception to this case is prop_ragdolls, which generally have more then 1. The PhysObj selected by the obj_num parameter depends on the model being used.
- The indexing starts at 0, this is the hip of the ragdoll.