Entity/SetupBones

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (note template)
(Mentioned the multiple drawing thing)
 
Line 1: Line 1:
 
{{Func
 
{{Func
|Description=Forces the entity to reconfigure its bones. You might need to call this after changing your model's scales.
+
|Description=Forces the entity to reconfigure its bones. You might need to call this after changing your model's scales or when manually drawing the entity multiple times at different positions.
  
 
{{Note|This calls the BuildBonePositions callback added via {{ClassFunction|Entity|AddCallback}}, so avoid calling this function inside it to prevent an infinite loop.}}
 
{{Note|This calls the BuildBonePositions callback added via {{ClassFunction|Entity|AddCallback}}, so avoid calling this function inside it to prevent an infinite loop.}}

Latest revision as of 07:56, 22 August 2016

 Entity:SetupBones( )

Description

Forces the entity to reconfigure its bones. You might need to call this after changing your model's scales or when manually drawing the entity multiple times at different positions.

NOTE

This calls the BuildBonePositions callback added via Entity:AddCallback, so avoid calling this function inside it to prevent an infinite loop.

Personal tools
Navigation