actionIDs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("serv...)
m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2")
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma3
|game1= arma3
|version1= 1.64


|1.64
|arg= global


|arg= global |Arguments in MP=
|eff= local
 
|eff= local |Effects in MP=


|gr1= Interaction
|gr1= Interaction


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


| [[actionIDs]] entity
|s1= [[actionIDs]] entity


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


| |MPBEHAVIOUR =
|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'>
</dl>
 
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|New Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
<dt></dt>
<dl class="command_description">
<dd class="notedate">Posted on 2018-04-22 - 14:19 (UTC)</dd>
<dd class="notedate">Posted on April 22, 2018 - 14:19 (UTC)</dd>
<dt class="note">[[User:KC Grimes|KC Grimes]]</dt>
<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>
<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>
<!-- DISCONTINUE Notes -->

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.