actionNow: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (2.16 -> 2.18)
m (Text replacement - "↵|version1= 2.18" to " |version1= 2.18 |branch= dev")
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.18
|version1= 2.18
|branch= dev


|eff= global
|eff= global
Line 26: Line 28:
|x1= <sqf>player actionNow ["TakeBag", _backpack]; // pick up a backpack without any animation</sqf>
|x1= <sqf>player actionNow ["TakeBag", _backpack]; // pick up a backpack without any animation</sqf>


|x2= <sqf>vehicle player actionNow ["Gear", player]; // open inventory while in vehicle</sqf>
|x2= <sqf>player actionNow ["Gear", vehicle player]; // open inventory while in vehicle</sqf>


|seealso= [[action]] [[actionIDs]] [[actionParams]] [[addAction]] [[setUserActionText]] [[inGameUISetEventHandler]] [[showHUD]] [[inputAction]] [[removeAction]] [[removeAllActions]] [[weaponsInfo]]
|seealso= [[action]] [[actionIDs]] [[actionParams]] [[addAction]] [[setUserActionText]] [[inGameUISetEventHandler]] [[showHUD]] [[inputAction]] [[removeAction]] [[removeAllActions]] [[weaponsInfo]]
}}
}}

Latest revision as of 22:50, 17 April 2024

Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.18.

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:
player actionNow ["Gear", vehicle 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