actionIDs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.63|= Game version _______________...")
 
m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2")
 
(46 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |= Game name
|game1= arma3
|1.63|= Game version
|version1= 1.64
____________________________________________________________________________________________


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


| [[actionIDs]] entity |= Syntax
|eff= local


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


| [[Array]] - Array with user action IDs |= Return Value
|descr= Returns [[Array]] of [[Number]]s, where numbers are IDs of all user actions added to given entity with [[addAction]] command.
____________________________________________________________________________________________
|x1= <code>_actions = [[actionIDs]] [[player]];</code> |= Example 1
____________________________________________________________________________________________
| [[addAction]], [[setUserActionText]], [[inGameUISetEventHandler]], [[showHUD]], [[inputAction]], [[removeAction]], [[removeAllActions]], [[action]] |= See Also


| |= MPBEHAVIOUR
|s1= [[actionIDs]] entity
____________________________________________________________________________________________
 
|p1= entity: [[Object]] - entity with added user actions
 
|r1= [[Array]] - array with user action IDs
 
|x1= <sqf>_actions = actionIDs player;</sqf>
|seealso= [[actionParams]] [[addAction]] [[setUserActionText]] [[inGameUISetEventHandler]] [[showHUD]] [[inputAction]] [[removeAction]] [[removeAllActions]] [[action]]
}}
}}


<h3 style='display:none'>Notes</h3>
<dl class="command_description">
<dl class='command_description'>
 
<dt></dt>
<dd class="notedate">Posted on 2018-04-22 - 14:19 (UTC)</dd>
<dt class="note">[[User:KC Grimes|KC Grimes]]</dt>
<dd class="note">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]].</dd>
 
</dl>
</dl>
<h3 style='display:none'>Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 12:40, 8 November 2023

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:
Interaction

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:
actionParams addAction setUserActionText inGameUISetEventHandler showHUD inputAction removeAction removeAllActions action

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 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.