{"name":"add3DENLayer","title":"add3DENLayer","type":"command","url":"https://community.bistudio.com/wiki/add3DENLayer","revid":369092,"updated":"2024-09-02T20:37:48Z","groups":["Eden Editor"],"status":"ok","games":{"arma3":"1.56"},"since":"arma3 1.56","arma3_since":"1.56","description":"Adds an editing layer in Eden Editor.","syntaxes":[{"syntax":"parentLayerID add3DENLayer name","params":[{"name":"parentLayerID","type":"Number","description":"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.","type_expr":"Number","text":"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":"name","type":"String","description":"layer display name","type_expr":"String"}],"returns":{"type":"Number","type_expr":"Number","description":"layer ID"},"form":"binary","left":{"text":"parentLayerID"},"right":{"text":"name"}}],"examples":[{"code":["_myLayer = -1 add3DENLayer \"Enemy Base\";\n_myLayerFort = _myLayer add3DENLayer \"Fortifications\";\n_myLayerPatrol = _myLayer add3DENLayer \"Patrols\";"]}],"see_also":["remove3DENLayer","set3DENLayer","get3DENLayerEntities"],"notes":[{"user":"Leopard20","date":"2023-04-04T17:28:00Z","text":"To get the list of all 3DEN layers, use all3DENEntities."}]}