playMove: Difference between revisions
Jump to navigation
Jump to search
(Note about transition) |
Lou Montana (talk | contribs) m (Text replacement - "[] spawn" to "0 spawn") |
||
Line 44: | Line 44: | ||
|x2= <sqf>player switchMove "AmovPercMstpSrasWrflDnon"; | |x2= <sqf>player switchMove "AmovPercMstpSrasWrflDnon"; | ||
0 spawn | |||
{ | { | ||
sleep 0.5; | sleep 0.5; | ||
Line 52: | Line 52: | ||
|x3= <sqf>player switchMove "AmovPercMstpSrasWrflDnon"; | |x3= <sqf>player switchMove "AmovPercMstpSrasWrflDnon"; | ||
0 spawn | |||
{ | { | ||
sleep 0.5; | sleep 0.5; |
Revision as of 21:24, 2 September 2024
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"; 0 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