playMoveNow: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{Feature *\| *Informative *\| ([^↵]+) *\}\}" to "{{Feature|informative|$1}}") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(One intermediate revision by the same user not shown) | |||
Line 33: | Line 33: | ||
|x1= <sqf>player playMoveNow "AmovPercMevaSlowWrflDf";</sqf> | |x1= <sqf>player playMoveNow "AmovPercMevaSlowWrflDf";</sqf> | ||
|x2= <sqf>player switchMove "AmovPercMstpSrasWrflDnon"; | |x2= <sqf> | ||
player switchMove "AmovPercMstpSrasWrflDnon"; | |||
0 spawn | |||
{ | { | ||
sleep 0.5; | sleep 0.5; | ||
player playMove "AmovPpneMstpSrasWrflDnon"; // player goes prone | player playMove "AmovPpneMstpSrasWrflDnon"; // player goes prone | ||
player playMove "amovPknlMstpSrasWrflDnon"; // player gets up on one knee | player playMove "amovPknlMstpSrasWrflDnon"; // player gets up on one knee | ||
};</sqf> | }; | ||
|x3= <sqf>player switchMove "amovpercmstpsraswrfldnon"; | </sqf> | ||
|x3= <sqf> | |||
player switchMove "amovpercmstpsraswrfldnon"; | |||
0 spawn | |||
{ | { | ||
sleep 0.5; | sleep 0.5; | ||
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 | ||
};</sqf> | }; | ||
</sqf> | |||
|seealso= [[playMove]] [[switchMove]] [[playAction]] [[playActionNow]] | |seealso= [[playMove]] [[switchMove]] [[playAction]] [[playActionNow]] | ||
}} | }} |
Latest revision as of 19:42, 3 September 2024
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:
- Example 2:
- Example 3:
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