action: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (parameter should not have same name as command)
Line 16: Line 16:
____________________________________________________________________________________________
____________________________________________________________________________________________


| unit '''action''' action |= Syntax
| unit '''action''' actionArray |= Syntax


|p1= unit: [[Object]] |= Parameter 1
|p1= unit: [[Object]] |= Parameter 1


|p2= action: [[Array]] |= Parameter 2
|p2= actionArray: [[Array]] |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value

Revision as of 17:18, 4 June 2015

Hover & click on the images for description

Description

Description:
Make a unit to perform an action. Use the List of Actions for reference about the available actions and their syntax. arguments global.gif NOTE: While this command should be executed where unit is local, it is not always the case. Actions such as "Eject", "GetOut", "GetInXXXX", "MoveToXXXX", etc can be executed on remote units.
Groups:
Uncategorised

Syntax

Syntax:
unit action actionArray
Parameters:
unit: Object
actionArray: Array
Return Value:
Nothing

Examples

Example 1:
player action ["SitDown", player];
Example 2:
_soldier action ["Eject", vehicle _soldier];

Additional Information

See also:
addActionremoveActionremoveAllActionssetUserActionTextinputAction

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 28 Aug, 2009
tom_48_97
In ArmA 2, you can place a unique unit (for example a boat, far of all combats) and use it for all command lines with action.

Bottom Section

Posted on March 27, 2015 - 17:57 (UTC)
DreadedEntity
This command has no effect when a dead unit is used as input.