get3DENLayerEntities: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(28 intermediate revisions by 3 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
____________________________________________________________________________________________


| Return all entities and sub-layer in [[Eden Entity]] layer. |DESCRIPTION=
|descr= Return all entities and sub-layer in [[Eden Entity]] layer. In order to get all layer entities during a scenario use [[getMissionLayerEntities]].
____________________________________________________________________________________________


| '''get3DENLayerEntities''' layerID |SYNTAX=
|s1= [[get3DENLayerEntities]] layerID
|p1= layerID: [[Number]] - layer ID as returned by [[add3DENLayer]] command |PARAMETER1=
| [[Array]] of [[Eden Entity|Eden Entities]] |RETURNVALUE=


|x1= <code>_myLayer = -1 [[add3DENLayer]] "CTRG";
|p1= layerID: [[Number]] - layer ID as returned by [[add3DENLayer]] command
[[player]] [[set3DENLayer]] _myLayer;
_entities = [[get3DENLayerEntities]] _myLayer;
</code>|EXAMPLE1=
____________________________________________________________________________________________


|
|r1= [[Array]] of [[Eden Entity|Eden Entities]]
[[add3DENLayer]]
[[remove3DENLayer]]
[[set3DENLayer]]
|SEEALSO=
|  |MPBEHAVIOUR=
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
|x1= <sqf>
<dl class='command_description'>
_myLayer = -1 add3DENLayer "CTRG";
<!-- Note Section BEGIN -->
player set3DENLayer _myLayer;
<!-- Note Section END -->
_entities = get3DENLayerEntities _myLayer;
</dl>
</sqf>
<!-- DISCONTINUE Notes -->


 
|seealso= [[add3DENLayer]] [[remove3DENLayer]] [[set3DENLayer]] [[getMissionLayerEntities]] [[getMissionLayers]]
<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 11:34, 3 September 2024

Hover & click on the images for description

Description

Description:
Return all entities and sub-layer in Eden Entity layer. In order to get all layer entities during a scenario use getMissionLayerEntities.
Groups:
Eden Editor

Syntax

Syntax:
get3DENLayerEntities layerID
Parameters:
layerID: Number - layer ID as returned by add3DENLayer command
Return Value:
Array of Eden Entities

Examples

Example 1:
_myLayer = -1 add3DENLayer "CTRG"; player set3DENLayer _myLayer; _entities = get3DENLayerEntities _myLayer;

Additional Information

See also:
add3DENLayer remove3DENLayer set3DENLayer getMissionLayerEntities getMissionLayers

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