playMoveNow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(removed playgesture from see also)
(description comparison)
Line 13: Line 13:
| When used on a person,a smooth transition to the given move will be initiated, but all previous playMove are discarded.  
| When used on a person,a smooth transition to the given move will be initiated, but all previous playMove are discarded.  


[[:ArmA2:_Moves|List of moves in ArmA 2]]<br />[[:Armed_Assault:_Moves_List|List of moves in Armed Assault]]<br />[[:Operation_Flashpoint:_Moves_List|List of moves in Operation Flashpoint: Resistance]]|= Description
[[:ArmA2:_Moves|List of moves in ArmA 2]]<br />[[:Armed_Assault:_Moves_List|List of moves in Armed Assault]]<br />[[:Operation_Flashpoint:_Moves_List|List of moves in Operation Flashpoint: Resistance]]
 
<br><br>
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:
<code>[[player]] [[switchMove]] "amovpercmstpsraswrfldnon";
[] [[spawn]]
{
[[sleep]] 0.5;
[[player]] [[playMove]] "amovppnemstpsraswrfldnon"; // player goes prone
[[player]] [[playMove]] "amovpknlmstpsraswrfldnon"; // player gets up on one knee
};</code>
Compared to:
<code>[[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
};</code>|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 18:38, 25 June 2017

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. List of moves in ArmA 2
List of moves in Armed Assault
List of moves in Operation Flashpoint: Resistance

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: player switchMove "amovpercmstpsraswrfldnon"; [] spawn { sleep 0.5; player playMove "amovppnemstpsraswrfldnon"; // player goes prone player playMove "amovpknlmstpsraswrfldnon"; // player gets up on one knee }; Compared to: 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 };
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
player playMoveNow "AmovPercMevaSlowWrflDf"

Additional Information

See also:
playMoveswitchMoveplayActionplayActionNow

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

Notes

Bottom Section