Entity.InvalidateBoneCache

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:InvalidateBoneCache( )
Description:
Invalidates and rebuilds the bone cache of an entity.
Returns: nil
In Object: Entity
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.InvalidateBoneCache]Entity.InvalidateBoneCache [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMakes players act normally after using bone functions on it.
Used onNewerClient.png
Code
local foot = ply:LookupBone( "ValveBiped.Bip01_L_Foot" )
local footpos = ply:GetBonePosition( foot ) --These functions mess up the bones of the player
ply:InvalidateBoneCache() --There, now the bones are normal again :)
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox