Talos docs

AnimOnce

Since 0.6

How a one-shot state leaves: once on a state.

Plain text

Every field is optional; see AnimOnce in the contract.

Signature

export interface AnimOnce {
  /** The state entered at the end. Absent: back to the state that was playing before. */
  then?: string
  /** Seconds before the last frame the hand-over starts, and how long it blends. Default 0.2. */
  blendOut?: number
  /** The states that may cut it short. Absent: any; `[]`: none. */
  interrupt?: string[]
  /** The bus event raised when it ends. Default `animation-end`. */
  event?: string
}

Import: import type { AnimOnce } from "@argus/gameplay"

Members

MemberSignatureDescription
thenthen?: stringThe state entered at the end. Absent: back to the state that was playing before.
blendOutblendOut?: numberSeconds before the last frame the hand-over starts, and how long it blends. Default 0.2.
interruptinterrupt?: string[]The states that may cut it short. Absent: any; []: none.
eventevent?: stringThe bus event raised when it ends. Default animation-end.