playMove: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(description comparison)
(Add Arma 3 moves list)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| ofp |= Game name
| ofp |Game name=


|1.00|= Game version
|1.00|Game version=


|arg= local |= Arguments in MP
|arg= local |Arguments in MP=


|eff= global |= Effects in MP
|eff= global |Effects in MP=
____________________________________________________________________________________________
____________________________________________________________________________________________


| When used on person, smooth transition to given move will be done.
| When used on a person, smooth transition to given move will be done.
<br />[[:ArmA2:_Moves|List of moves in ArmA 2]]<br />[[:Armed_Assault:_Moves_List|List of moves in Armed Assault]]<br />[[:Operation_Flashpoint:_Moves_List|List of moves in Operation Flashpoint: Resistance]]
* [[Arma_3_Moves|List of moves in Arma 3]]
<br><br>
* [[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:
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";  
<code>[[player]] [[switchMove]] "AmovPercMstpSrasWrflDnon";  
[] [[spawn]]  
[] [[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
};</code>
};</code>
Compared to:  
Compared to:  
Line 27: Line 30:
{
{
[[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
};</code> |= Description
};</code> |Description=
____________________________________________________________________________________________
____________________________________________________________________________________________


| unitName '''playMove''' moveName |= Syntax
| unitName '''playMove''' moveName |Syntax=


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


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


| [[playMoveNow]], [[switchMove]], [[playAction]], [[playActionNow]] |= See also
| [[playMoveNow]], [[switchMove]], [[playAction]], [[playActionNow]] |See also=
 
}}
}}


Line 58: Line 60:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|PLAYMOVE]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|PLAYMOVE]]
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.46|PLAYMOVE]]
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA|PLAYMOVE]]
[[Category:Scripting Commands ArmA|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 02:09, 3 January 2019

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: player switchMove "AmovPercMstpSrasWrflDnon"; [] spawn { sleep 0.5; player playMove "AmovPpneMstpSrasWrflDnon"; // player goes prone player playMove "amovPknlMstpSrasWrflDnon"; // player gets up on one knee }; Compared to: 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 };
Groups:
Uncategorised

Syntax

Syntax:
unitName playMove moveName
Parameters:
unitName: Object
moveName: String
Return Value:
Nothing

Examples

Example 1:
soldierOne playMove "Stand"

Additional Information

See also:
playMoveNowswitchMoveplayActionplayActionNow

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

Notes

Unknown
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.

Bottom Section