# Wait for Animation

Grammar — Wait until identifier playback is offset seconds from the offsetType of the animation for actor actor
FlagsNative | Action

Waits until an animation is a specified amount of seconds from the offset type. Note that the animations and animation times may vary from player to player due to different game states or localities so this waits for all players to report that they have reached the specified point.

# Arguments

  • actor — Actor
  • string — Identifier
  • fixed — Offset
  • int [ preset::AnimationOffset ] — Offset Type

Returns — void

native void AnimWait(
	actor a,
	string animName,
	fixed offset,
	int offsetType,
);

Category: Animation / Advanced

# Examples

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L5989
AnimWait(ActorFromDoodad(DoodadFromId(149909154)), "Cover", 0.0, c_animationOffsetEnd)
// L5989
AnimWait(ActorFromDoodad(DoodadFromId(149909154)), "Cover", 0.0, c_animationOffsetEnd)