playMove: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 45: | Line 45: | ||
[] spawn | [] spawn | ||
{ | { | ||
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 | ||
Line 53: | Line 53: | ||
[] spawn | [] spawn | ||
{ | { | ||
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 |
Revision as of 13:04, 12 May 2022
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:
- 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 };
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
- 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.
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Animations
- Scripting Commands: Global Effect