playMove: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add Arma 3 moves list)
(Note about transition)
 
(49 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| ofp |Game name=
|game1= ofp
|version1= 1.00


|1.00|Game version=
|game2= ofpe
|version2= 1.00


|arg= local |Arguments in MP=
|game3= arma1
|version3= 1.00


|eff= global |Effects in MP=
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| When used on a person, smooth transition to given move will be done.
|game5= arma2oa
* [[Arma_3_Moves|List of moves in Arma 3]]
|version5= 1.50
* [[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:
|game6= tkoh
<code>[[player]] [[switchMove]] "AmovPercMstpSrasWrflDnon";
|version6= 1.00
[] [[spawn]]
 
{
|game7= arma3
[[sleep]] 0.5;
|version7= 0.50
[[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; // player goes prone
 
[[player]] [[playMove]] "amovPknlMstpSrasWrflDnon"; // player gets up on one knee
|arg= local
};</code>
 
Compared to:
|eff= global
<code>[[player]] [[switchMove]] "amovpercmstpsraswrfldnon";
 
[] [[spawn]]
|gr1= Animations
{
 
[[sleep]] 0.5;
|descr= When used on a person, smooth transition to given move will be done.<br>
[[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; // player never goes prone
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}}).
[[player]] [[playMoveNow]] "AmovPknlMstpSrasWrflDnon"; // player goes down on one knee straight away
{{Feature|informative|see [[:Category:Moves]] for respective games animations.}}
};</code> |Description=
{{Feature|important|A transition is only possible if the current and provided animations have the correct relationship configuration.}}
____________________________________________________________________________________________
 
|s1= unitName [[playMove]] moveName


| unitName '''playMove''' moveName |Syntax=
|p1= unitName: [[Object]]


|p1= unitName: [[Object]] |Parameter 1=
|p2= moveName: [[String]]
|p2= moveName: [[String]] |Parameter 2=


| [[Nothing]] |Return value=
|r1= [[Nothing]]
____________________________________________________________________________________________
 
|x1= <code>soldierOne [[playMove]] "Stand" </code> |Example 1=
____________________________________________________________________________________________


| [[playMoveNow]], [[switchMove]], [[playAction]], [[playActionNow]] |See also=
|x1= <sqf>soldierOne playMove "Stand";</sqf>
}}


<h3 style="display:none">Notes</h3>
|x2= <sqf>player switchMove "AmovPercMstpSrasWrflDnon";
<dl class="command_description">
[] spawn
<!-- Note Section BEGIN -->
{
sleep 0.5;
player playMove "AmovPpneMstpSrasWrflDnon"; // player goes prone
player playMove "amovPknlMstpSrasWrflDnon"; // player gets up on one knee
};</sqf>


<dt class="note">Unknown
|x3= <sqf>player switchMove "AmovPercMstpSrasWrflDnon";
<dd class="note">For an immediate transition use [[switchMove]]. This command must be executed after mission start. If you place it into init.sqs / init.sqf or in the Init field of some unit, it will not work. Just add a little delay (~0.001) and then place the command.
[] spawn
{
sleep 0.5;
player playMove "AmovPpneMstpSrasWrflDnon"; // player never goes prone
player playMoveNow "AmovPknlMstpSrasWrflDnon"; // player goes down on one knee straight away
};</sqf>


<!-- Note Section END -->
|seealso= [[playMoveNow]] [[switchMove]] [[playAction]] [[playActionNow]]
</dl>
}}


<h3 style="display:none">Bottom Section</h3>
{{Note
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|user= Macguba
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
|timestamp= 20060416023900
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
|text= For an immediate transition use [[switchMove]]. This command must be executed after mission start. If you place it into init.sqs / init.sqf or in the Init field of some unit, it will not work. Just add a little delay (~0.001) and then place the command.
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14:07, 19 January 2024

Hover & click on the images for description

Description

Description:
When used on a person, smooth transition to given move will be done.
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:
unitName playMove moveName
Parameters:
unitName: Object
moveName: String
Return Value:
Nothing

Examples

Example 1:
soldierOne playMove "Stand";
Example 2:
player switchMove "AmovPercMstpSrasWrflDnon"; [] spawn { sleep 0.5; player playMove "AmovPpneMstpSrasWrflDnon"; // player goes prone player playMove "amovPknlMstpSrasWrflDnon"; // player gets up on one knee };
Example 3:
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:
playMoveNow 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
Macguba - c
Posted on Apr 16, 2006 - 02:39 (UTC)
For an immediate transition use switchMove. This command must be executed after mission start. If you place it into init.sqs / init.sqf or in the Init field of some unit, it will not work. Just add a little delay (~0.001) and then place the command.