getMissionLayerEntities: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Fix) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.56 | |version1= 1.56 | ||
|serverExec= server | |||
|gr1= Eden Editor | |gr1= Eden Editor | ||
Line 19: | Line 21: | ||
* [[Number]] - layer ID in the editor | * [[Number]] - layer ID in the editor | ||
|r1= [[Array]] in format | |r1= [[Array]] in format [objects, markers, {{GVI|arma3|2.14|size= 0.75}} groups] (or empty array if the layer does not exist) | ||
|x1= <sqf>private _base = getMissionLayerEntities "Base";</sqf> | |x1= <sqf>private _base = getMissionLayerEntities "Base";</sqf> | ||
Line 33: | Line 35: | ||
|x3= <sqf>private _layer1337Entities = getMissionLayerEntities 1337;</sqf> | |x3= <sqf>private _layer1337Entities = getMissionLayerEntities 1337;</sqf> | ||
|x4= <sqf>getMissionLayerEntities 42 params [["_objects", []], ["_markers", []], ["_groups", []]];</sqf> | |||
|seealso= [[get3DENLayerEntities]] | |seealso= [[get3DENLayerEntities]] | ||
}} | }} | ||
Latest revision as of 11:45, 14 February 2024
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:
- 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
- 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.