playAction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma2 |Game name=
| arma2 |Game name=
Line 13: Line 12:


|gr2= Animations |GROUP2=
|gr2= Animations |GROUP2=
____________________________________________________________________________________________


| When used on a person, a smooth transition to the given action will be initiated.
| When used on a person, a smooth transition to the given action will be initiated.
Line 20: Line 18:


|DESCRIPTION=
|DESCRIPTION=
____________________________________________________________________________________________


| soldier '''playAction''' action |SYNTAX=
| soldier '''playAction''' action |SYNTAX=
Line 35: Line 32:
|x1= <code>soldierOne [[playAction]] "SitDown"</code>|EXAMPLE1=  
|x1= <code>soldierOne [[playAction]] "SitDown"</code>|EXAMPLE1=  


____________________________________________________________________________________________


| [[playActionNow]], [[switchAction]], [[playMove]], [[playMoveNow]], [[switchMove]]|SEEALSO=  
| [[playActionNow]], [[switchAction]], [[playMove]], [[playMoveNow]], [[switchMove]]|SEEALSO=  


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 02:14, 17 January 2021

Hover & click on the images for description

Description

Description:
When used on a person, a smooth transition to the given action will be initiated.
For Arma 3 actions see: playAction/actions.
Groups:
Unit ControlAnimations

Syntax

Syntax:
soldier playAction action
Parameters:
soldier: Object -
action: String -
Return Value:
Nothing

Examples

Example 1:
soldierOne playAction "SitDown"

Additional Information

See also:
playActionNowswitchActionplayMoveplayMoveNowswitchMove

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

Bottom Section