playMoveNow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Replaced <code> with <sqf>)
Line 39: Line 39:
player playMove "amovPknlMstpSrasWrflDnon"; // player gets up on one knee
player playMove "amovPknlMstpSrasWrflDnon"; // player gets up on one knee
};</sqf>
};</sqf>
<code>player switchMove "amovpercmstpsraswrfldnon";
|x3= <sqf>player switchMove "amovpercmstpsraswrfldnon";
[] spawn
[] spawn
{
{
Line 45: Line 45:
player playMove "AmovPpneMstpSrasWrflDnon"; // player never goes prone
player playMove "AmovPpneMstpSrasWrflDnon"; // player never goes prone
player playMoveNow "AmovPknlMstpSrasWrflDnon"; // player goes down on one knee straight away
player playMoveNow "AmovPknlMstpSrasWrflDnon"; // player goes down on one knee straight away
};</code>
};</sqf>


|seealso= [[playMove]] [[switchMove]] [[playAction]] [[playActionNow]]
|seealso= [[playMove]] [[switchMove]] [[playAction]] [[playActionNow]]
}}
}}

Revision as of 16:20, 14 May 2022

Hover & click on the images for description

Description

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).
see Category:Moves for respective games animations.
Groups:
Animations

Syntax

Syntax:
soldier playMoveNow moveName
Parameters:
soldier: Object
moveName: String
Return Value:
Nothing

Examples

Example 1:
player playMoveNow "AmovPercMevaSlowWrflDf"
Example 2:
player switchMove "AmovPercMstpSrasWrflDnon"; [] spawn { sleep 0.5; player playMove "AmovPpneMstpSrasWrflDnon"; // player goes prone player playMove "amovPknlMstpSrasWrflDnon"; // player gets up on one knee };
Example 3:
player switchMove "amovpercmstpsraswrfldnon"; [] spawn { sleep 0.5; player playMove "AmovPpneMstpSrasWrflDnon"; // player never goes prone player playMoveNow "AmovPknlMstpSrasWrflDnon"; // player goes down on one knee straight away };

Additional Information

See also:
playMove switchMove playAction playActionNow

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note