playMoveNow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(52 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma2 |= Game name
|game1= arma2
|version1= 1.00


|1.00|Game version=
|game2= arma2oa
|version2= 1.50


|arg= local |Multiplayer Arguments=
|game3= tkoh
|version3= 1.00


|eff= global |Multiplayer Effects=
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


| When used on a person,a smooth transition to the given move will be initiated, but all previous playMove are discarded.
|arg= local
* [[Arma_3_Moves|List of moves in Arma 3]]
* [[ArmA2:_Moves|List of moves in Arma 2]]
* [[Armed_Assault:_Moves_List|List of moves in Armed Assault]]
* [[Operation_Flashpoint:_Moves_List|List of moves in Operation Flashpoint: Resistance]]
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:
<code>[[player]] [[switchMove]] "amovpercmstpsraswrfldnon";
[] [[spawn]]
{
[[sleep]] 0.5;
[[player]] [[playMove]] "amovppnemstpsraswrfldnon"; // player goes prone
[[player]] [[playMove]] "amovpknlmstpsraswrfldnon"; // player gets up on one knee
};</code>
Compared to:
<code>[[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
};</code>|DESCRIPTION=
____________________________________________________________________________________________


| soldier '''playMoveNow''' moveName |SYNTAX=
|eff= global


|p1= soldier: [[Object]] -  |PARAMETER1=  
|gr1= Animations


|p2= moveName: [[String]] |PARAMETER2=
|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 {{Link|#Example 2}}).
{{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.}}


|p3= |PARAMETER3=  
|s1= soldier [[playMoveNow]] moveName


| Nothing |RETURNVALUE=  
|p1= soldier: [[Object]]


|p2= moveName: [[String]]


|x1= <code>[[player]] [[playMoveNow]] "AmovPercMevaSlowWrflDf"</code>|EXAMPLE1=
|r1= [[Nothing]]


____________________________________________________________________________________________
|x1= <sqf>player playMoveNow "AmovPercMevaSlowWrflDf";</sqf>
 
|x2= <sqf>
|  [[playMove]], [[switchMove]], [[playAction]], [[playActionNow]]|SEEALSO=  
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>


| |MPBEHAVIOUR=  
|seealso= [[playMove]] [[switchMove]] [[playAction]] [[playActionNow]]
____________________________________________________________________________________________
}}
}}
<h3 style='display:none'>Notes</h3>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:ArmA 2: New Scripting Commands List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 19:42, 3 September 2024

Hover & click on the images for description

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).
see Category:Moves for respective games animations.
A transition is only possible if the current and provided animations have the correct relationship configuration.
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"; 0 spawn { sleep 0.5; player playMove "AmovPpneMstpSrasWrflDnon"; // player goes prone player playMove "amovPknlMstpSrasWrflDnon"; // player gets up on one knee };
Example 3:
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 };

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