playActionNow: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 11: | Line 10: | ||
|gr1= Animations |GROUP1= | |gr1= Animations |GROUP1= | ||
| When used on a person, a smooth transition to the given action will be initiated, but all previous playAction are discarded. | | When used on a person, a smooth transition to the given action will be initiated, but all previous playAction are discarded. | ||
Line 18: | Line 16: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
| soldier '''playActionNow''' action |SYNTAX= | | soldier '''playActionNow''' action |SYNTAX= | ||
Line 35: | Line 32: | ||
|x2= <code>rabbitTwo [[playActionNow]] "WalkF";</code>|EXAMPLE2= | |x2= <code>rabbitTwo [[playActionNow]] "WalkF";</code>|EXAMPLE2= | ||
| [[playAction]], [[switchAction]], [[playMove]], [[playMoveNow]], [[switchMove]] |SEEALSO= | | [[playAction]], [[switchAction]], [[playMove]], [[playMoveNow]], [[switchMove]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 02:17, 17 January 2021
Description
- Description:
- When used on a person, a smooth transition to the given action will be initiated, but all previous playAction are discarded.
For Arma 3 actions see: playAction/actions. - Groups:
- Animations
Syntax
- Syntax:
- soldier playActionNow action
- Parameters:
- soldier: Object -
- action: String -
- Return Value:
- Nothing
Examples
- Example 1:
soldierOne playActionNow "SitDown";
- Example 2:
rabbitTwo playActionNow "WalkF";
Additional Information
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
Notes
- Posted on October 12, 2010 - 9:41
- Wolfrug (talk)
-
Some other possible playactions:
"walkf" - walk forward
"walkb" - walk backwards
"walkr" - strafe right
"walkl" - strafe left
"grabdrag" - initiate First Aid dragging animation
"stopdrag" - stops First Aid dragging animation
"reloadMagazine" - reloads the current magazine
"gestureFreeze" - hand signal "Freeze"
"GestureGo"
"GestureCover"
"GestureAttack"
"GestureCeaseFire"
"GestureFollow"
"GestureUp"
"GestureAdvance"
"GesturePoint"
Note that playAction works regardless of stance (rifle up, down, crouched, prone).