# Wait for Animation
Grammar — Wait until identifier playback is offset seconds from the offsetType of the animation for actor actor
Flags —Native
|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
— Actorstring
— Identifierfixed
— Offsetint
<preset::AnimationOffset> — Offset Type
Returns — void
native void AnimWait(
actor a,
string animName,
fixed offset,
int offsetType,
);
# Related
Category: Animation / Advanced
- Last Animation Query —
generichandle
<animlengthquery> — AnimLengthQueryLastCreated - Query Animation Length By Identifier —
void
— AnimLengthQueryByName - Query Animation Length By Props —
void
— AnimLengthQueryByProps - Wait for Animation Length Queries —
void
— AnimLengthQueryWait - Wait for Animation —
void
— AnimWait - Animation Length —
fixed
— AnimLengthSync - Animation Time Remaining —
fixed
— AnimLengthRemainingSync - Set Animation Time —
void
— libNtve_gf_SetAnimationTime - Set Animation Time Scale —
void
— libNtve_gf_SetAnimationTimeScale - Set Animation Completion —
void
— libNtve_gf_SetAnimationCompletion - Set Animation Duration —
void
— libNtve_gf_SetAnimationDuration - Load Model Animation —
void
— ModelAnimationLoad - Load Overriding Model Animation —
void
— ModelAnimationLoadOverriding - Unload Model Animation —
void
— ModelAnimationUnload - Load Animation for Unit Type —
void
— UnitTypeAnimationLoad - Load Overriding Animation for Unit Type —
void
— UnitTypeAnimationLoadOverriding - Unload Animation for Unit Type —
void
— UnitTypeAnimationUnload
# Examples
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova09.sc2map/MapScript.galaxy:6325
libNCMI_gf_SendTransmissionCampaign(gv_nova, "Mission_Nova09|Line00031", c_transmissionDurationAdd, 0.0, true, libNCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter, libNCMI_ge_MissionTransmissionCueSoundOptions_DefaultCueSoundBehavior);
libNCMI_gf_SendTransmissionCampaign(null, "Mission_Nova09|Line00032", c_transmissionDurationAdd, 0.0, true, libNCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter, libNCMI_ge_MissionTransmissionCueSoundOptions_DefaultCueSoundBehavior);
AnimWait(ActorFromDoodad(DoodadFromId(149909154)), "Cover", 0.0, c_animationOffsetEnd);
Wait(0.5, c_timeGame);
ActorSend(ActorFromDoodad(DoodadFromId(149909154)), "Signal DetachFromRamp");
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova09.sc2map — MapScript.galaxy:6325
libNCMI_gf_SendTransmissionCampaign(gv_nova, "Mission_Nova09|Line00031", c_transmissionDurationAdd, 0.0, true, libNCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter, libNCMI_ge_MissionTransmissionCueSoundOptions_DefaultCueSoundBehavior);
libNCMI_gf_SendTransmissionCampaign(null, "Mission_Nova09|Line00032", c_transmissionDurationAdd, 0.0, true, libNCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter, libNCMI_ge_MissionTransmissionCueSoundOptions_DefaultCueSoundBehavior);
AnimWait(ActorFromDoodad(DoodadFromId(149909154)), "Cover", 0.0, c_animationOffsetEnd);
Wait(0.5, c_timeGame);
ActorSend(ActorFromDoodad(DoodadFromId(149909154)), "Signal DetachFromRamp");