add3DENLayer: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - " <h3 style='display:none'>Bottom Section</h3>" to "")
m (Text replacement - "Category:Eden Editor" to "Eden Editor")
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


|arma3
|game1= arma3
 
|version1= 1.56
|1.56


|gr1= Eden Editor
|gr1= Eden Editor


| Add an editing layer in [[Eden Editor]].
|descr= Adds an editing layer in [[:Category:Eden Editor|Eden Editor]].


| parentLayerID '''add3DENLayer''' name
|s1= parentLayerID [[add3DENLayer]] name
|p1= parentLayerID : [[Number]] - ID of the parent layer. Use -1 to create the layer to root. No layer will be created when the ID doesn't point to a layer.
|p2= name: [[String]] - layer display name
| [[Number]] - layer ID


|x1= <code>_myLayer = -1 [[add3DENLayer]] "Enemy Base";
|p1= parentLayerID : [[Number]] - ID of the parent layer. No layer will be created when the ID does not point to a layer. Use {{hl|-1}} to create the layer to root.
_myLayerFort = _myLayer [[add3DENLayer]] "Fortifications";
_myLayerPatrol = _myLayer [[add3DENLayer]] "Patrols";
</code>


|
|p2= name: [[String]] - Layer display name
[[remove3DENLayer]]
[[set3DENLayer]]
[[get3DENLayerEntities]]


|
|r1= [[Number]] - Layer ID
}}


<dl class='command_description'>
|x1= <sqf>_myLayer = -1 add3DENLayer "Enemy Base";
<!-- Note Section BEGIN -->
_myLayerFort = _myLayer add3DENLayer "Fortifications";
<!-- Note Section END -->
_myLayerPatrol = _myLayer add3DENLayer "Patrols";</sqf>
</dl>
<!-- DISCONTINUE Notes -->


|seealso= [[remove3DENLayer]] [[set3DENLayer]] [[get3DENLayerEntities]]
}}


{{GameCategory|arma3|New Scripting Commands}}
{{Note
{{GameCategory|arma3|Scripting Commands}}
|user= Leopard20
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|timestamp= 20230404172800
|text= To get the list of all 3DEN layers, use [[all3DENEntities]].
}}

Revision as of 13:26, 9 July 2023

Hover & click on the images for description

Description

Description:
Adds an editing layer in Eden Editor.
Groups:
Eden Editor

Syntax

Syntax:
parentLayerID add3DENLayer name
Parameters:
parentLayerID : Number - ID of the parent layer. No layer will be created when the ID does not point to a layer. Use -1 to create the layer to root.
name: String - Layer display name
Return Value:
Number - Layer ID

Examples

Example 1:
_myLayer = -1 add3DENLayer "Enemy Base"; _myLayerFort = _myLayer add3DENLayer "Fortifications"; _myLayerPatrol = _myLayer add3DENLayer "Patrols";

Additional Information

See also:
remove3DENLayer set3DENLayer get3DENLayerEntities

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note
Leopard20 - c
Posted on Apr 04, 2023 - 17:28 (UTC)
To get the list of all 3DEN layers, use all3DENEntities.