actionIDs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


|1.64|= Game version
|1.64|Game version=


|arg= global |= Arguments in MP
|arg= global |Arguments in MP=


|eff= local |= Effects in MP
|eff= local |Effects in MP=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


| [[actionIDs]] entity |= Syntax
| [[actionIDs]] entity |Syntax=


|p1= entity: [[Object]] - entity with added user actions |= Parameter 1
|p1= entity: [[Object]] - entity with added user actions |Parameter 1=


| [[Array]] - Array with user action IDs |= Return Value
| [[Array]] - Array with user action IDs |Return Value=
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1= <code>_actions = [[actionIDs]] [[player]];</code> |= Example 1
|x1= <code>_actions = [[actionIDs]] [[player]];</code> |Example 1=
____________________________________________________________________________________________
____________________________________________________________________________________________
|  [[actionParams]], [[addAction]], [[setUserActionText]], [[inGameUISetEventHandler]], [[showHUD]], [[inputAction]], [[removeAction]], [[removeAllActions]], [[action]]|= See Also
|  [[actionParams]], [[addAction]], [[setUserActionText]], [[inGameUISetEventHandler]], [[showHUD]], [[inputAction]], [[removeAction]], [[removeAllActions]], [[action]]|See Also=


|  |= MPBEHAVIOUR
|  |MPBEHAVIOUR =
____________________________________________________________________________________________
____________________________________________________________________________________________
}}
}}

Revision as of 09:04, 30 May 2018

Hover & click on the images for description

Description

Description:
Returns Array of Numbers, where numbers are IDs of all user actions added to given entity with addAction command.
Groups:
Uncategorised

Syntax

Syntax:
actionIDs entity
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

Notes

Bottom Section

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.