playMoveNow: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
Lou Montana (talk | contribs) m (Text replacement - ";[ ]+ " to "; ") |
||
Line 32: | Line 32: | ||
|x1= <code>[[player]] [[playMoveNow]] "AmovPercMevaSlowWrflDf"</code> | |x1= <code>[[player]] [[playMoveNow]] "AmovPercMevaSlowWrflDf"</code> | ||
|x2= <code>[[player]] [[switchMove]] "AmovPercMstpSrasWrflDnon"; | |x2= <code>[[player]] [[switchMove]] "AmovPercMstpSrasWrflDnon"; | ||
[] [[spawn]] | [] [[spawn]] | ||
{ | { | ||
[[sleep]] 0.5; | [[sleep]] 0.5; | ||
[[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; {{cc|player goes prone}} | [[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; {{cc|player goes prone}} | ||
[[player]] [[playMove]] "amovPknlMstpSrasWrflDnon"; {{cc|player gets up on one knee}} | [[player]] [[playMove]] "amovPknlMstpSrasWrflDnon"; {{cc|player gets up on one knee}} | ||
Line 42: | Line 42: | ||
[] [[spawn]] | [] [[spawn]] | ||
{ | { | ||
[[sleep]] 0.5; | [[sleep]] 0.5; | ||
[[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; {{cc|player never goes prone}} | [[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; {{cc|player never goes prone}} | ||
[[player]] [[playMoveNow]] "AmovPknlMstpSrasWrflDnon"; {{cc|player goes down on one knee straight away}} | [[player]] [[playMoveNow]] "AmovPknlMstpSrasWrflDnon"; {{cc|player goes down on one knee straight away}} |
Revision as of 00:55, 8 August 2021
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:
- 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 };
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