Animation Controller

From C4 Engine Wiki
Revision as of 10:46, 15 July 2023 by Eric Lengyel (talk | contribs) (Created page with "__NOTOC__ The '''Animation Controller''' is a type of controller that can be used to play animations for a generic model. == Settings == The following settings are available for Animation Controllers. {| {{Table}} {{Tablehead|Setting|Description}} |- {{Setting|'''Initial animation name'''|The name of the animation resource that is initially applied to the model.}} |- {{Setting|'''Animation is initially playing'''|If checked, then the animation is initially playing whe...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Animation Controller is a type of controller that can be used to play animations for a generic model.

Settings

The following settings are available for Animation Controllers.

Setting

Description

Initial animation name

The name of the animation resource that is initially applied to the model.

Animation is initially playing

If checked, then the animation is initially playing when the world is loaded. Otherwise, the animation is stopped.

Animation plays in reverse

If checked, then the animation plays in reverse.

Animation is looping

If checked, then the animation loops when it is played.

Animation is oscillating

If checked, then the animation plays forward and then plays in reverse. If the animation is also looping, then this oscillation repeats.

Script Functions

The Animation Controller defines the following functions that can be called from a script using the Call Controller Function method.

Function

Description

Play Animation

Plays a new animation for the target model and completes immediately.

  • The Animation name setting specifies the name of the animation resource to play.
  • The Reverse setting specifies whether the animation plays in reverse.
  • The Loop setting specifies whether the animation loops.
  • The Oscillate setting specifies whether the animation oscillates.

Stop Animation

Stops animation for the target model and completes immediately.

See Also