Script:playanim: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 18: Line 18:
}}
}}


{{Notice|The delayed command specified using the <code>-e</code> flag is added as a {{Command|timer}} named "anim_timer_" followed by a unique number. If the animation is cancelled the command will still be executed at the time the animation would have finished.}}
{{Notice|The delayed command specified using the <code>-e</code> flag is added as a [[Script:timer|timer]] named "anim_timer_" followed by a unique number. If the animation is cancelled the command will still be executed at the time the animation would have finished.}}


Animation slots are set with {{Command|loadanim}}.
Animation slots are set with {{Command|loadanim}}.

Revision as of 02:45, 17 April 2020

This article is a stub - you can help by expanding it. See the Wiki FAQ.

The playanim script command is used to play an animation for an entity.

Usage

playanim [-123lnpe] <animslot> [e?command...]
playanim [-123p] none

Context: Any Entity

Flags:

 -1: Set the animation for the first animation layer
 -2: Set the animation for the second animation layer
 -3: Set the animation for the third animation layer
 -l: Loop the animation
 -n: Do not interpolate from the current animation
 -p: Set an animation on the player instead of the calling entity
 -e: Execute a command after the animation completes

Parameters:

ParameterTypeDescription
animslot string The animation slot to kill
command (requires -e) command A command to execute after the animation completes

ℹ️  The delayed command specified using the -e flag is added as a timer named "anim_timer_" followed by a unique number. If the animation is cancelled the command will still be executed at the time the animation would have finished.

Animation slots are set with loadanim.