Skip to content

zCMoverControler

Quick Infos

Class Name: zCMoverControler
Version Identifiers:
β€” Gothic I: 0
β€” Gothic II: 0
Sources:
β€” spacerhilfedatei.sph
β€” gothic-library.ru
β€” zk.gothickit.dev

A VObject used to control zCMover objects of type NSTATE_SINGLE_KEYS specifically. zCMoverControler objects react to incoming OnTrigger events to send a pre-configured event to the target mover object named by the triggerTarget propery, controlling its animation. Mover controllers can make movers go to a specific keyframe in their animation or just step one keyframe back and forth at a time.

Class members

Class member overview

moverMessage

The type of event to emit to the triggerTarget when this controller receives an OnTrigger event.

Accepted values:

  • GOTO_KEY_FIXED_DIRECTLY β€” Make the target mover directly go to the keyframe specified in gotoFixedKey, skipping all intermediate keyframes.
  • GOTO_KEY_FIXED_ORDER β€” Make the target mover go to the keyframe specified in in gotoFixedKey while still going through all intermediate keyframes.
  • GOTO_KEY_NEXT β€” Make the target mover go to the next keyframe in sequence. Wraps around to the first keyframe.
  • GOTO_KEY_PREV β€” Make the target mover go to the previous keyframe in sequence. Wraps around to the last keyframe.

gotoFixedKey

The keyframe of the mover referred to by triggerTarget to move to.

Warning

Only relevant if moverMessage is GOTO_KEY_FIXED_DIRECTLY or GOTO_KEY_FIXED_ORDER.