playMove: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{HashLink" to "{{Link") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 31: | Line 31: | ||
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 {{Link|#Example 2}}). | 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 {{Link|#Example 2}}). | ||
{{Feature|informative|see [[:Category:Moves]] for respective games animations.}} | {{Feature|informative|see [[:Category:Moves]] for respective games animations.}} | ||
{{Feature|important|A transition is only possible if the current and provided animations have the correct relationship configuration.}} | |||
|s1= unitName [[playMove]] moveName | |s1= unitName [[playMove]] moveName | ||
Line 42: | Line 43: | ||
|x1= <sqf>soldierOne playMove "Stand";</sqf> | |x1= <sqf>soldierOne playMove "Stand";</sqf> | ||
|x2= <sqf>player switchMove "AmovPercMstpSrasWrflDnon"; | |x2= <sqf> | ||
player switchMove "AmovPercMstpSrasWrflDnon"; | |||
0 spawn | |||
{ | { | ||
sleep 0.5; | 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 | ||
};</sqf> | }; | ||
</sqf> | |||
|x3= <sqf>player switchMove "AmovPercMstpSrasWrflDnon"; | |x3= <sqf> | ||
player switchMove "AmovPercMstpSrasWrflDnon"; | |||
0 spawn | |||
{ | { | ||
sleep 0.5; | 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 | ||
};</sqf> | }; | ||
</sqf> | |||
|seealso= [[playMoveNow]] [[switchMove]] [[playAction]] [[playActionNow]] | |seealso= [[playMoveNow]] [[switchMove]] [[playAction]] [[playActionNow]] |
Latest revision as of 19:42, 3 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