get3DENEntityID: Difference between revisions

From Bohemia Interactive Community
m (1.56)
(Added 2.22 changes)
 
(42 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


|arma3|= Game name
|game1= arma3
|version1= 1.56


|1.56|= Game version
|gr1= Eden Editor
____________________________________________________________________________________________


| Returns unique index of an [[Eden Entity]]. This number remains the same even after saving and loading the scenario. |= Description
|descr= Returns unique index of an [[Eden Entity]]. This number remains the same even after saving and loading the scenario. ´
____________________________________________________________________________________________


| '''get3DENEntityID''' entity |= Syntax
{{Feature|informative|Since {{GVI|arma3|2.22}} this command also returns the IDs of [[Eden Entity|Eden Entities]] of type Object, Trigger, Group and Logic during [[is3DENPreview|preview]].}}
|p1= entity: [[Eden Entity]] -  |= PARAMETER1
| [[Number]] |= RETURNVALUE


|x1= <code>myID = get3DENEntityID [[player]]</code>|= EXAMPLE1
|s1= [[get3DENEntityID]] entity
____________________________________________________________________________________________


| [[get3DENEntity]] |= SEEALSO
|p1= entity: [[Eden Entity]] or [[Eden ID]]
| |= MPBEHAVIOUR
|r1= [[Number]] - [[Eden ID]] If ID is not available, -1 is returned
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
|x1= <sqf>myID = get3DENEntityID player;</sqf>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<!-- DISCONTINUE Notes -->


 
|seealso= [[get3DENEntity]]
<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}}}}]]
[[Category:Command Group: Eden Editor|{{uc:{{PAGENAME}}}}]]

Latest revision as of 15:50, 20 March 2026

Hover & click on the images for description

Description

Description:
Returns unique index of an Eden Entity. This number remains the same even after saving and loading the scenario. ´
Since Arma 3 logo black.png 2.22 this command also returns the IDs of Eden Entities of type Object, Trigger, Group and Logic during preview.
Groups:
Eden Editor

Syntax

Syntax:
get3DENEntityID entity
Parameters:
entity: Eden Entity or Eden ID
Return Value:
Number - Eden ID If ID is not available, -1 is returned

Examples

Example 1:
myID = get3DENEntityID player;

Additional Information

See also:
get3DENEntity

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note