Arma 3 Scripting

Command in Animations

playMoveNow

Also available as Markdown and JSON, or read the original wiki page.

Description

When used on a person,a smooth transition to the given move will be initiated, but all previous playMove are discarded.

The difference between playMove and playMoveNow is that playMove adds another move to the move queue, while playMoveNow replaces the whole move queue with new move (see #Example 2).

Note

see Category:Moves for respective games animations.

Important

A transition is only possible if the current and provided animation nodes are connected to each other in config (via connectTo/From and interpolateTo/From). The connection can be indirect (using intermediate animations).

Syntax

soldier playMoveNow moveName

Parameters:

Returns: Nothing

Examples

Example 1

player playMoveNow "AmovPercMevaSlowWrflDf";

Example 2

player switchMove "AmovPercMstpSrasWrflDnon";
0 spawn 
{
    sleep 0.5;
    player playMove "AmovPpneMstpSrasWrflDnon";        // player goes prone
    player playMove "amovPknlMstpSrasWrflDnon";        // player gets up on one knee
};

Example 3

player switchMove "AmovPercMstpSrasWrflDnon";
0 spawn
{
    sleep 0.5;
    player playMove "AmovPpneMstpSrasWrflDnon";        // player never goes prone
    player playMoveNow "AmovPknlMstpSrasWrflDnon";    // player goes down on one knee straight away
};

See also

playMove · switchMove · playAction · playActionNow