playMove: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>") |
m (Replaced <code> with <sqf>) |
||
Line 50: | Line 50: | ||
};</sqf> | };</sqf> | ||
< | |x3= <sqf>player switchMove "AmovPercMstpSrasWrflDnon"; | ||
[] spawn | [] spawn | ||
{ | { | ||
Line 56: | Line 56: | ||
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 | ||
};</ | };</sqf> | ||
|seealso= [[playMoveNow]] [[switchMove]] [[playAction]] [[playActionNow]] | |seealso= [[playMoveNow]] [[switchMove]] [[playAction]] [[playActionNow]] |
Revision as of 15:19, 14 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:
- 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
- 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