actionNow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 19: Line 19:


|s2= [[actionNow]] actionArray
|s2= [[actionNow]] actionArray
|s2since= Arma3 2.10


|p21= actionArray: [[Array]]
|p21= actionArray: [[Array]]

Revision as of 22:34, 13 January 2024

Hover & click on the images for description

Description

Description:
Make a unit perform an action immediately (without any animation/pre-processing). See the action command for more information.
Groups:
Interaction

Syntax

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

Alternative Syntax

Syntax:
actionNow actionArray
Parameters:
actionArray: Array
Return Value:
Nothing

Examples

Example 1:
player actionNow ["TakeBag", _backpack]; // pick up a backpack without any animation
Example 2:
vehicle player actionNow ["Gear", player]; // open inventory while in vehicle

Additional Information

See also:
action actionIDs actionParams addAction setUserActionText inGameUISetEventHandler showHUD inputAction removeAction removeAllActions weaponsInfo

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