This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
override_animation [2017/08/31 19:00] – justin | override_animation [2021/04/21 18:37] (current) – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Overrides an entity' | + | Overrides an [[entity|entity' |
+ | ====Signature: | ||
<code python> | <code python> | ||
override_animation(entity, | override_animation(entity, | ||
Line 9: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |entity|Entity | + | |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: | ||
- | < | + | < |
- | override_animation(player, | + | override_animation(player, |
</ | </ | ||
- | // | + | // |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Override Animation** function (along with [[Set Movement Speed]]) to replace the player' | + | Use the **Override Animation** function (along with [[Set Movement Speed]]) to replace the [[player_character|player |
</ | </ | ||
Line 28: | Line 29: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||
<WRAP half column> | <WRAP half column> | ||
====Visual Demo:==== | ====Visual Demo:==== | ||
- | {{:wiki: | + | {{: |
</ | </ | ||
</ | </ |