switchAction: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
m (template:command argument fix)
Line 12: Line 12:
| soldier '''switchAction''' action |= Syntax
| soldier '''switchAction''' action |= Syntax


|p1= soldier: [[Object]] |= PARAMETER1
|p1= soldier: [[Object]] |PARAMETER1=  


|p2= action: [[String]] |= PARAMETER2
|p2= action: [[String]] |PARAMETER2=  


|p3= |= PARAMETER3
|p3= |PARAMETER3=  


| [[Nothing]] |= RETURNVALUE
| [[Nothing]] |RETURNVALUE=  




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


____________________________________________________________________________________________
____________________________________________________________________________________________


| [[playAction]], [[playActionNow]], [[switchMove]] |= SEEALSO
| [[playAction]], [[playActionNow]], [[switchMove]] |SEEALSO=  


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

Revision as of 11:37, 7 April 2019

Hover & click on the images for description

Description

Description:
When used on a person, the given action is started immediately (there is no transition). Use switchmove "" to switch back to the default movement if there is no transition back, otherwise the person may be stuck.
Groups:
Uncategorised

Syntax

Syntax:
soldier switchAction action
Parameters:
soldier: Object
action: String
Return Value:
Nothing

Examples

Example 1:
soldierOne switchAction "SitDown"

Additional Information

See also:
playActionplayActionNowswitchMove

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