playMoveNow: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " " to " ") |
Lou Montana (talk | contribs) m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|") |
||
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. <br> | | 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]]). | 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.}} | {{Feature | Informative | see [[:Category:Moves]] for respective games animations.}} | ||
| soldier [[playMoveNow]] moveName | | soldier [[playMoveNow]] moveName |
Revision as of 00:09, 7 February 2021
Description
- Description:
- Description needed
- Groups:
- Animations
Syntax
- Syntax:
- Syntax needed
- Parameters:
- soldier: Object
- moveName: String
- Return Value:
- Return value needed
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
- See also:
- See also needed
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