playAction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma2 |Game name=
| arma2


|1.00|Game version=
|1.00


|arg=local |Multiplayer Arguments=
|arg=local


|eff= global |Multiplayer Effects=
|eff= global


|gr1= Unit Control |GROUP1=
|gr1= Unit Control


|gr2= Animations |GROUP2=
|gr2= Animations


| 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 17: Line 17:
For Arma 3 actions see: [[playAction/actions]].
For Arma 3 actions see: [[playAction/actions]].


|DESCRIPTION=


| soldier '''playAction''' action |SYNTAX=


|p1= soldier: [[Object]] -  |PARAMETER1=
| soldier '''playAction''' action


|p2= action: [[String]] - |PARAMETER2=
|p1= soldier: [[Object]] -


|p3= |PARAMETER3=  
|p2= action: [[String]] -


| Nothing |RETURNVALUE=  
|p3=


| Nothing


|x1= <code>soldierOne [[playAction]] "SitDown"</code>|EXAMPLE1=


|x1= <code>soldierOne [[playAction]] "SitDown"</code>


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


|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  

Revision as of 02:11, 18 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