playMove: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "Category:Scripting Commands ArmA2" to "Category:Scripting Commands Arma 2") |
Lou Montana (talk | contribs) (Fix description) |
||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| When used on a person, smooth transition to given move will be done. | | When used on a person, smooth transition to given move will be done.<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 [[#Examples|Example 2]]). | |||
{{Informative | see [[:Category:Moves]] for respective games animations.}} |Description= | |||
____________________________________________________________________________________________ | |||
| unitName [[playMove]] moveName |Syntax= | |||
<code>[[player]] [[switchMove]] "AmovPercMstpSrasWrflDnon"; | |||
|p1= unitName: [[Object]] |Parameter 1= | |||
|p2= moveName: [[String]] |Parameter 2= | |||
| [[Nothing]] |Return value= | |||
____________________________________________________________________________________________ | |||
|x1= <code>soldierOne [[playMove]] "Stand";</code> |Example 1= | |||
|x2= <code>[[player]] [[switchMove]] "AmovPercMstpSrasWrflDnon"; | |||
[] [[spawn]] | [] [[spawn]] | ||
{ | { | ||
[[sleep]] 0.5; | [[sleep]] 0.5; | ||
[[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; | [[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; {{cc|player goes prone}} | ||
[[player]] [[playMove]] "amovPknlMstpSrasWrflDnon"; | [[player]] [[playMove]] "amovPknlMstpSrasWrflDnon"; {{cc|player gets up on one knee}} | ||
};</code> | };</code> | ||
<code>[[player]] [[switchMove]] "amovpercmstpsraswrfldnon"; | <code>[[player]] [[switchMove]] "amovpercmstpsraswrfldnon"; | ||
[] [[spawn]] | [] [[spawn]] | ||
{ | { | ||
[[sleep]] 0.5; | [[sleep]] 0.5; | ||
[[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; | [[player]] [[playMove]] "AmovPpneMstpSrasWrflDnon"; {{cc|player never goes prone}} | ||
[[player]] [[playMoveNow]] "AmovPknlMstpSrasWrflDnon"; | [[player]] [[playMoveNow]] "AmovPknlMstpSrasWrflDnon"; {{cc|player goes down on one knee straight away}} | ||
};</code> | | };</code> |Example 2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 16:51, 22 February 2020
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). - Groups:
- Uncategorised
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 };
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
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 Arma 2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters