actionIDs: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - ">Posted on April ([0-9]{2})[ a-zA-Z]*, ([0-9]{4})" to ">Posted on $2-04-$1")
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:
|gr1= Interaction
|gr1= Interaction


|descr= Returns [[Array]] of [[Number]]s, where numbers are IDs of all user actions added to given entity with [[addAction]] command.
|descr=  


|s1= [[actionIDs]] entity
|s1= [[actionIDs]] entity
Line 16: Line 16:
|p1= entity: [[Object]] - entity with added user actions
|p1= entity: [[Object]] - entity with added user actions


|r1= [[Array]] - Array with user action IDs
|r1= [[Array]] of [[Number]]s - IDs of all user actions added to given entity with [[addAction]] command


|x1= <sqf>_actions = actionIDs player;</sqf>
|x1= <sqf>_actions = actionIDs player;</sqf>

Latest revision as of 10:15, 2 January 2026

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Interaction

Syntax

Syntax:
actionIDs entity
Parameters:
entity: Object - entity with added user actions
Return Value:
Array of Numbers - IDs of all user actions added to given entity with addAction command

Examples

Example 1:
_actions = actionIDs player;

Additional Information

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

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Posted on 2018-04-22 - 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.