get3DENLayerEntities: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{GameCategory|arma3|New Scripting Commands}} {{GameCategory|arma3|Scripting Commands}} {{uc:{{PAGENAME}}}}" to "")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|arma3
|descr= arma3


|1.56
|version1= 1.56


|gr1= Eden Editor
|gr1= Eden Editor


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


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


|x1= <code>_myLayer = -1 [[add3DENLayer]] "CTRG";
|x1= <code>_myLayer = -1 [[add3DENLayer]] "CTRG";
[[player]] [[set3DENLayer]] _myLayer;
[[player]] [[set3DENLayer]] _myLayer;
_entities = [[get3DENLayerEntities]] _myLayer;
_entities = [[get3DENLayerEntities]] _myLayer;</code>
</code>


|
|seealso= [[add3DENLayer]] [[remove3DENLayer]] [[set3DENLayer]] [[getMissionLayerEntities]]
[[add3DENLayer]]
[[remove3DENLayer]]
[[set3DENLayer]]
[[getMissionLayerEntities]]
}}
}}

Revision as of 10:03, 15 May 2021

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

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