playMove: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^<]*↵[^<]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(55 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=command | ||
| ofp |= | |game1= ofp | ||
|version1= 1.00 | |||
|1.00 | |game2= ofpe | ||
|version2= 1.00 | |||
| | |game3= arma1 | ||
|version3= 1.00 | |||
| | |game4= arma2 | ||
|version4= 1.00 | |||
| | |game5= arma2oa | ||
|version5= 1.50 | |||
|game6= tkoh | |||
|version6= 1.00 | |||
| | |game7= arma3 | ||
|version7= 0.50 | |||
| | |arg= local | ||
| | |eff= global | ||
| | |gr1= Animations | ||
|descr= 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 {{Link|#Example 2}}). | |||
{{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 | |||
|p1= unitName: [[Object]] | |||
|p2= moveName: [[String]] | |||
|r1= [[Nothing]] | |||
|x1= <sqf>soldierOne playMove "Stand";</sqf> | |||
|x2= <sqf> | |||
player switchMove "AmovPercMstpSrasWrflDnon"; | |||
0 spawn | |||
{ | |||
sleep 0.5; | |||
player playMove "AmovPpneMstpSrasWrflDnon"; // player goes prone | |||
player playMove "amovPknlMstpSrasWrflDnon"; // player gets up on one knee | |||
}; | |||
</sqf> | |||
|x3= <sqf> | |||
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 | |||
}; | |||
</sqf> | |||
|seealso= [[playMoveNow]] [[switchMove]] [[playAction]] [[playActionNow]] | |||
}} | }} | ||
{{Note | |||
|user= Macguba | |||
|timestamp= 20060416023900 | |||
For an immediate transition use [[switchMove]]. This command must be executed after mission start. If you place it into init.sqs or in the Init field of some unit, it will not work. Just add a little delay (~0.001) and then place the command. | |text= 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. | ||
}} | |||
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