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
Last revisionBoth sides next revision
override_animation [2018/03/16 09:46] justinoverride_animation [2020/07/23 17:02] justin
Line 2: Line 2:
 ---- ----
  
-Overrides an entity's animation with another one. This can be used to replace a predefined animation (for example, a character's "walk" animation) with a custom one during the game. You can specify the same name 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 10: Line 10:
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|entity|Entity for which to override the animation.|[[Entity]]|Yes| +|entity|[[Entity]] to override the [[animation]] for.|[[Entity]]|Yes| 
-|anim_to_override|Name of the animation that will be overridden.|[[String]]|Yes| +|anim_to_override|Name of the [[animation]] that will be overridden.|[[String]]|Yes| 
-|override_with|Name of the animation to use in place of the overridden one.|[[String]]|Yes|+|override_with|Name of the [[animation]] to use in place of the overridden one.|[[String]]|Yes|
  
 ====Example:==== ====Example:====
-<code python>+<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 is walking instead of the original "walk" animation.+//Results:// Until reverted, the "silly_walk" [[animation]] will be used whenever the [[player character]] is walking instead of their default "walk" [[animation]].
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Override Animation** function (along with [[Set Movement Speed]]) to replace the player's default walking animation with a running animation when traversing the wilderness or with a staggering animation when they've suffered an injury.+Use the **Override Animation** function (along with [[Set Movement Speed]]) to replace the [[player_character|player character's]] default walking [[animation]] with a running [[animation]] when traversing the wilderness or with a staggering [[animation]] when they've suffered an injury.
 </WRAP> </WRAP>
  
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.txt · Last modified: 2021/04/21 18:37 by justin