Entity/SetPoseParameter

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Added helpful tip about usage)
m (Screwed up formatting)
Line 1: Line 1:
 
{{Func
 
{{Func
|Description=Sets the specified pose parameter to the specified value.
+
|Description=Sets the specified pose parameter to the specified value.<br>
 
'''Note:''' Avoid calling this in draw hooks, especially when animating things, as it might cause artifacts.
 
'''Note:''' Avoid calling this in draw hooks, especially when animating things, as it might cause artifacts.
 
You should call {{ClassFunction|Entity|InvalidateBoneCache}} after calling this function.
 
You should call {{ClassFunction|Entity|InvalidateBoneCache}} after calling this function.

Revision as of 02:39, 5 September 2015

 Entity:SetPoseParameter( )

Description

Sets the specified pose parameter to the specified value.
Note: Avoid calling this in draw hooks, especially when animating things, as it might cause artifacts. You should call Entity:InvalidateBoneCache after calling this function.

Arguments

string poseName

Name of the pose parameter.

Arguments

number poseValue

The value to set the pose to.
Personal tools
Navigation