playMoveNow: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2") |
Lou Montana (talk | contribs) (Fix description) |
||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| 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. <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 (see [[#Examples|Example 2]]). | |||
{{Informative | see [[:Category:Moves]] for respective games animations.}} |DESCRIPTION= | |||
____________________________________________________________________________________________ | |||
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: | | soldier [[playMoveNow]] moveName |SYNTAX= | ||
<code>[[player]] [[switchMove]] " | |||
|p1= soldier: [[Object]] |PARAMETER1= | |||
|p2= moveName: [[String]] |PARAMETER2= | |||
| [[Nothing]] |RETURNVALUE= | |||
|x1= <code>[[player]] [[playMoveNow]] "AmovPercMevaSlowWrflDf"</code>|EXAMPLE1= | |||
|x2= <code>[[player]] [[switchMove]] "AmovPercMstpSrasWrflDnon"; | |||
[] [[spawn]] | [] [[spawn]] | ||
{ | { | ||
[[sleep]] 0.5; | [[sleep]] 0.5; | ||
[[player]] [[playMove]] " | [[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; {{cc|player goes prone}} | ||
[[player]] [[playMove]] " | [[player]] [[playMove]] "amovPknlMstpSrasWrflDnon"; {{cc|player gets up on one knee}} | ||
};</code> | };</code> | ||
<code>[[player]] [[switchMove]] "amovpercmstpsraswrfldnon"; | <code>[[player]] [[switchMove]] "amovpercmstpsraswrfldnon"; | ||
[] [[spawn]] | [] [[spawn]] | ||
{ | { | ||
[[sleep]] 0.5; | [[sleep]] 0.5; | ||
[[player]] [[playMove]] " | [[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; {{cc|player never goes prone}} | ||
[[player]] [[playMoveNow]] " | [[player]] [[playMoveNow]] "AmovPknlMstpSrasWrflDnon"; {{cc|player goes down on one knee straight away}} | ||
};</code>| | };</code> |Example 2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 16:55, 22 February 2020
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). - Groups:
- Uncategorised
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 };
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
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