Page tree
Skip to end of metadata
Go to start of metadata




Introduced in

Version:1.50

Description

Description:

Checks whether a unit is currently involved in a fn vbs complex animation.

Returns true during any part of the actions related to a complex animation (for example, while walking towards the destination, or turning towards other actors, as well as while playing the animation itself).

Syntax

Syntax:[unit] call fn_vbs_animation_active
Parameters:
Return Value:Boolean - If true, then unit is currently performing a complex animation.

Warning

When using functions in VBS versions older than 3.4, certain limitations and requirements should be kept in mind - the main ones being that capitalization of the function name is crucial, and that #include "\vbs2\headers\function_library.hpp" has to be included in every script that utilizes it. More Category VBS Scripting Functions.

Examples

Examples:
if ([soldierOne] call fn_vbs_animation_active) then {
  hint "I'm busy right now.";
}

Additional Information

See also: fn vbs complex animation, fn vbs animation status
Multiplayer: 
Problems: 

Notes