get3DENLayerEntities: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9])= *([^ ]+) * +\|version([0-9])= *([^ ]+) * " to "|game$1=$2 |version$3=$4 ")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(6 intermediate revisions by 2 users not shown)
Line 14: Line 14:
|r1= [[Array]] of [[Eden Entity|Eden Entities]]
|r1= [[Array]] of [[Eden Entity|Eden Entities]]


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


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

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