Entity.SetParentPhysNum

From GMod Wiki

Revision as of 14:15, 13 September 2009 by UnrealomegaBot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:SetParentPhysNum( Integer physNum )
Description:
If the entity is parented to an entity that has a model with multiple physics objects (like a ragdoll), this is used to set what physics object number the entity should be parented to on it's parent.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.SetParentPhysNum]Entity.SetParentPhysNum [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionN/A
Used onNewerMissing.png
Code
LuaIco3.pngThis page needs an example to demonstrate the item detailed on this page. See how to make one here.
See more articles that need examples here.
OutputN/A


Additional Notes

A player is treated as a single physics entity and therefore does not have the same characteristics that a ragdoll has, i.e setting a phys num on a object parented to a player will not make a difference

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox