playMoveNow: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| arma2 \| *([0-9]\.[0-9]{2}) * " to " | arma2 |$1 |game2= arma2oa |version2= 1.50 |game3= tkoh |version3= 1.00 |game4= arma3 |version4= 0.50 ") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(31 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|1.00 | |version1= 1.00 | ||
|game2= arma2oa | |game2= arma2oa | ||
Line 19: | Line 19: | ||
|gr1= Animations | |gr1= Animations | ||
| When used on a person,a smooth transition to the given move will be initiated, but all previous playMove are discarded. <br> | |descr= 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 | 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 {{Link|#Example 2}}). | ||
{{Feature | | {{Feature|informative|see [[:Category:Moves]] for respective games animations.}} | ||
{{Feature|important|A transition is only possible if the current and provided animations have the correct relationship configuration.}} | |||
| soldier [[playMoveNow]] moveName | |s1= soldier [[playMoveNow]] moveName | ||
|p1= soldier: [[Object]] | |p1= soldier: [[Object]] | ||
Line 29: | Line 30: | ||
|p2= moveName: [[String]] | |p2= moveName: [[String]] | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>player playMoveNow "AmovPercMevaSlowWrflDf";</sqf> | ||
|x2= < | |x2= <sqf> | ||
player switchMove "AmovPercMstpSrasWrflDnon"; | |||
0 spawn | |||
{ | { | ||
sleep 0.5; | |||
player playMove "AmovPpneMstpSrasWrflDnon"; // player goes prone | |||
player playMove "amovPknlMstpSrasWrflDnon"; // player gets up on one knee | |||
};</ | }; | ||
< | </sqf> | ||
|x3= <sqf> | |||
player switchMove "amovpercmstpsraswrfldnon"; | |||
0 spawn | |||
{ | { | ||
sleep 0.5; | |||
player playMove "AmovPpneMstpSrasWrflDnon"; // player never goes prone | |||
player playMoveNow "AmovPknlMstpSrasWrflDnon"; // player goes down on one knee straight away | |||
};</ | }; | ||
</sqf> | |||
|seealso= [[playMove]] | |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