From Bohemia Interactive Community
					 
					
					
					
					
Hover & click on the images for description
 
Description
- Description:
 
- Returns all entities within the specific Eden Editor layer and its sub-layers.
To be used when the scenario is running, not in the editor workspace.
Useful to disable/enable whole parts of the scenario if layers are used during mission design.
 
- Groups:
 
- Eden EditorMission Information
 
Syntax
- Syntax:
 
- getMissionLayerEntities layerName
 - Parameters:
 
- layerName: can be one of:
- String - case-insensitive; layer name in the editor. If multiple layers with the same name are present in the scenario, the first found one is used
 
- Number - layer ID in the editor
 
 - Return Value:
 
- Array in format [objects, markers, 
 2.14 groups] (or empty array if the layer does not exist) 
Examples
- Example 1:
 - Example 2:
 - delete all objects within that layer after the player is over 800m away from _someObject:
 - Example 3:
 - Example 4:
 
Additional Information
- See also:
 
- get3DENLayerEntities
 
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
 
 
- R3vo - c
 
- Posted on Oct 26, 2016 - 15:27 (UTC)
 
- 
After an object was deleted from a layer, getMissionLayerEntities will return <NULL-object> for the deleted object.