User Tools

Site Tools


override_animation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
override_animation [2020/07/23 16:46] justinoverride_animation [2021/04/21 18:37] (current) justin
Line 2: Line 2:
 ---- ----
  
-Overrides an [[entity|entity's]] [[animation]] with another one. This can be used to replace a [[predefined_animations|predefined animation]] (for example, a [[character|character's]] "walk" [[animation]]) with a custom one during the game. You can specify the same default name (for example, "walk") for both parameters to revert that [[animation]] to its original settings.+Overrides an [[entity|entity's]] [[animation]] with another one. This can be used to replace a [[predefined_animation_names|predefined animation]] (for example, a [[character|character's]] "walk" [[animation]]) with a custom one during the game. You can specify the same default name (for example, "walk") for both parameters to revert that [[animation]] to its original settings.
  
 ====Signature:==== ====Signature:====
Line 16: Line 16:
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-override_animation(player, "walk", "silly_walk")+override_animation(player, "walk", "silly_walk");
 </code> </code>
 //Results:// Until reverted, the "silly_walk" [[animation]] will be used whenever the [[player character]] is walking instead of their default "walk" [[animation]]. //Results:// Until reverted, the "silly_walk" [[animation]] will be used whenever the [[player character]] is walking instead of their default "walk" [[animation]].
Line 29: Line 29:
 <WRAP half column> <WRAP half column>
 ====Editor Node:==== ====Editor Node:====
-{{:wiki:override_animation_node.png?nolink|}}+{{:override_animation_node.png?nolink|}}
 </WRAP> </WRAP>
  
 <WRAP half column> <WRAP half column>
 ====Visual Demo:==== ====Visual Demo:====
-{{:wiki:override_animation_demo.gif?nolink|}}+{{:override_animation_demo.gif?nolink|}}
 </WRAP> </WRAP>
 </WRAP> </WRAP>
override_animation.1595547998.txt.gz · Last modified: 2020/07/23 16:46 by justin