getMissionLayerEntities: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <!-- (DIS)?CONTINUE Notes -->" to "")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


|arma3
|game1= arma3


|1.56
|version1= 1.56


|gr1= Eden Editor
|gr1= Eden Editor
Line 9: Line 9:
|gr2= Mission Information
|gr2= Mission Information


| Returns all entities within specific [[Eden Editor]] layer. To be used when the scenario is running, not in the editor workspace.
|descr= Returns all entities within specific [[Eden Editor: Layer]]. To be used when the scenario is running, not in the editor workspace. Useful for disabling / enabling whole parts of the scenario which you add to specific layer while editing.
 
Useful for disabling / enabling whole parts of the scenario which you add to specific layer while editing.
{{Feature | Informative | Default layers are not returned.}}
{{Feature | Informative | Default layers are not returned.}}


| [[getMissionLayerEntities]] layerName
|s1= [[getMissionLayerEntities]] layerName


|p1= layerName: [[String]] - Layer name in the editor. If multiple layers with the same name are present in the scenario, the first found one is used.
|p1= layerName: [[String]] - Layer name in the editor. If multiple layers with the same name are present in the scenario, the first found one is used


|r1= [[Array]] in format <code>[objects:Array, markers:Array]</code>
|r1= [[Array]] in format <tt><nowiki>[</nowiki>[objects], [markers]]</tt>


|x1= <code>_base = [[getMissionLayerEntities]] "Base";</code>
|x1= <code>_base = [[getMissionLayerEntities]] "Base";</code>
Line 31: Line 29:
|s2= [[getMissionLayerEntities]] layerID
|s2= [[getMissionLayerEntities]] layerID


|p21= layerID: [[Number]] - Layer ID in the editor.
|p21= layerID: [[Number]] - Layer ID in the editor


|r2= [[Array]] in format <code>[objects:Array, markers:Array]</code>
|r2= [[Array]] in format <tt><nowiki>[</nowiki>[objects], [markers]]</tt>


| [[get3DENLayerEntities]]
|seealso= [[get3DENLayerEntities]]


|serverExec= server
|serverExec= server
}}
}}


<dl class="command_description">
<dl class="command_description">
Line 46: Line 43:
<dt class="note">[[User:R3vo|R3vo]]</dt>
<dt class="note">[[User:R3vo|R3vo]]</dt>
<dd class="note">
<dd class="note">
After an [[object]] was deleted from a layer, [[getMissionLayerEntities]] will return <NULL-object> for the deleted [[object]].
After an [[object]] was deleted from a layer, [[getMissionLayerEntities]] will return <tt><NULL-object></tt> for the deleted [[object]].
<br>
<br>
Version: 1.65<br>
Build: 139010<br>
</dd>
</dd>
</dl>
</dl>

Revision as of 09:17, 18 May 2021

Hover & click on the images for description

Description

Description:
Returns all entities within specific Eden Editor: Layer. To be used when the scenario is running, not in the editor workspace. Useful for disabling / enabling whole parts of the scenario which you add to specific layer while editing.
Default layers are not returned.
Groups:
Eden EditorMission Information

Syntax

Syntax:
getMissionLayerEntities layerName
Parameters:
layerName: String - Layer name in the editor. If multiple layers with the same name are present in the scenario, the first found one is used
Return Value:
Array in format [[objects], [markers]]

Alternative Syntax

Syntax:
getMissionLayerEntities layerID
Parameters:
layerID: Number - Layer ID in the editor
Return Value:
Array in format [[objects], [markers]]

Examples

Example 1:
_base = getMissionLayerEntities "Base";
Example 2:
waitUntil {(player distance _someObject) > 800}; { deleteVehicle _x; } forEach ((getMissionLayerEntities "Simple Objects") select 0); // Deletes all objects within that layer after the player is over 800m away from _someObject
Example 3:
_layer1337Entities = getMissionLayerEntities 1337;

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 October 26, 2016 - 15:27 (UTC)
R3vo
After an object was deleted from a layer, getMissionLayerEntities will return <NULL-object> for the deleted object.