playMove: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (description comparison) |
Lou Montana (talk | contribs) (Add Arma 3 moves list) |
||
Line 1: | Line 1: | ||
{{Command|= | {{Command|Comments= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| ofp | | | ofp |Game name= | ||
|1.00| | |1.00|Game version= | ||
|arg= local | | |arg= local |Arguments in MP= | ||
|eff= global | | |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. | ||
* [[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: | 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]] " | <code>[[player]] [[switchMove]] "AmovPercMstpSrasWrflDnon"; | ||
[] [[spawn]] | [] [[spawn]] | ||
{ | { | ||
[[sleep]] 0.5; | [[sleep]] 0.5; | ||
[[player]] [[playMove]] " | [[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; // player goes prone | ||
[[player]] [[playMove]] " | [[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]] " | [[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; // player never goes prone | ||
[[player]] [[playMoveNow]] " | [[player]] [[playMoveNow]] "AmovPknlMstpSrasWrflDnon"; // player goes down on one knee straight away | ||
};</code> |= | };</code> |Description= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| unitName '''playMove''' moveName |= | | unitName '''playMove''' moveName |Syntax= | ||
|p1= unitName: [[Object]] | | |p1= unitName: [[Object]] |Parameter 1= | ||
|p2= moveName: [[String]] | | |p2= moveName: [[String]] |Parameter 2= | ||
| [[Nothing]] | | | [[Nothing]] |Return value= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>soldierOne [[playMove]] "Stand" </code> | | |x1= <code>soldierOne [[playMove]] "Stand" </code> |Example 1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[playMoveNow]], [[switchMove]], [[playAction]], [[playActionNow]] | | | [[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| | [[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| | [[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands OFP 1.46| | [[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA| | [[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
Description
- Description:
- When used on a person, smooth transition to given move will be done.
- List of moves in Arma 3
- List of moves in Arma 2
- List of moves in Armed Assault
- List of moves in Operation Flashpoint: Resistance
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
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands OFP 1.99
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters