add3DENLayer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3dev |= Game name |1.52|= Game version ______________...")
 
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(39 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |= Game name
|game1= arma3
|version1= 1.56


|1.52|= Game version
|gr1= Eden Editor
____________________________________________________________________________________________


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


| parentLayerID '''add3DENLayer''' name |= Syntax
|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. |= PARAMETER1
|p2= name: [[String]] - layer display name |= PARAMETER2
| [[Number]] - layer ID |= RETURNVALUE


|x1= <code>myLayer = -1 add3DENLayer "Enemy Base";</code>|= EXAMPLE1
|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.
____________________________________________________________________________________________


|
|p2= name: [[String]] - layer display name
[[remove3DENLayer]]
 
[[set3DENLayer]]
|r1= [[Number]] - layer ID
[[get3DENLayerEntities]]
|= SEEALSO
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}


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


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


<h3 style='display:none'>Bottom Section</h3>
{{Note
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
|user= Leopard20
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
|timestamp= 20230404172800
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|text= To get the list of all 3DEN layers, use [[all3DENEntities]].
[[Category:Command Group: Eden Editor|{{uc:{{PAGENAME}}}}]]
}}

Latest revision as of 21:37, 2 September 2024

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 or on the Forums.
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.