R3vo
After an object was deleted from a layer, getMissionLayerEntities will return <NULL-object> for the deleted object.
Results appear below as you type; use the arrow keys to move through them.
Command · also in Mission Information · Markdown · JSON · original wiki page
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.
Note
Default layers are not returned.
getMissionLayerEntities layerName
Parameters:
Returns: Array with [objects, markers, Arma 3 v2.14 groups] (or empty array if the layer does not exist)
private _base = getMissionLayerEntities "Base";
delete all objects within that layer after the player is over 800m away from _someObject:
waitUntil { sleep 1; (player distance _someObject) > 800 };
private _simpleObjects = (getMissionLayerEntities "Simple Objects") select 0;
{
deleteVehicle _x;
} forEach _simpleObjects;
private _layer1337Entities = getMissionLayerEntities 1337;
getMissionLayerEntities 42 params [["_objects", []], ["_markers", []], ["_groups", []]];
After an object was deleted from a layer, getMissionLayerEntities will return <NULL-object> for the deleted object.