actionIDs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <dl class="command_description"> </dl>" to "")
m (Text replacement - " \| *(\[\[[a-zA-Z0-9]+\]\][^ ]+) *\|x1=" to " |r1= $1 |x1=")
Line 17: Line 17:
|p1= entity: [[Object]] - entity with added user actions
|p1= entity: [[Object]] - entity with added user actions


| [[Array]] - Array with user action IDs
|r1= [[Array]] - Array with user action IDs
 
|x1= <code>_actions = [[actionIDs]] [[player]];</code>
|x1= <code>_actions = [[actionIDs]] [[player]];</code>
|seealso= [[actionParams]], [[addAction]], [[setUserActionText]], [[inGameUISetEventHandler]], [[showHUD]], [[inputAction]], [[removeAction]], [[removeAllActions]], [[action]]
|seealso= [[actionParams]], [[addAction]], [[setUserActionText]], [[inGameUISetEventHandler]], [[showHUD]], [[inputAction]], [[removeAction]], [[removeAllActions]], [[action]]

Revision as of 14:22, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Interaction

Syntax

Syntax:
Syntax needed
Parameters:
entity: Object - entity with added user actions
Return Value:
Array - Array with user action IDs

Examples

Example 1:
_actions = actionIDs player;

Additional Information

See also:
actionParamsaddActionsetUserActionTextinGameUISetEventHandlershowHUDinputActionremoveActionremoveAllActionsaction

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
Posted on April 22, 2018 - 14:19 (UTC)
KC Grimes
The argument for this command can be global (ie, not local to the executing machine), however the returned array will only contain action IDs for locally executed addAction.