set3DENLayer: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "_{10,} " to "")
m (Some wiki formatting)
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command


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


|1.56|Game version=
|gr1= Eden Editor


|gr1= Eden Editor |GROUP1=
|descr= Set layer for [[Eden Entity]].


| Set layer for [[Eden Entity]]. |DESCRIPTION=
|s1= entity [[set3DENLayer]] layerID


| entity '''set3DENLayer''' layerID |SYNTAX=
|p1= entity: [[Eden Entity]]
|p1= entity: [[Eden Entity]] |PARAMETER1=
|p2= layerID: [[Number]] - layer ID as returned by [[add3DENLayer]] command |PARAMETER2=
| [[Boolean]] - [[true]] if the entity was moved succesfully |RETURNVALUE=


|x1= <code>_myLayer = -1 [[add3DENLayer]] "CTRG";
|p2= layerID: [[Number]] - layer ID as returned by [[add3DENLayer]] command
[[player]] [[set3DENLayer]] _myLayer;</code>|EXAMPLE1=


|
|r1= [[Boolean]] - [[true]] if the entity was moved succesfully
[[add3DENLayer]]
[[remove3DENLayer]]
[[get3DENLayerEntities]]
|SEEALSO=
|  |MPBEHAVIOUR=
}}


<h3 style='display:none'>Notes</h3>
|x1= <sqf>
<dl class='command_description'>
private _myLayer = -1 add3DENLayer "CTRG";
<!-- Note Section BEGIN -->
player set3DENLayer _myLayer;
<!-- Note Section END -->
</sqf>
</dl>
<!-- DISCONTINUE Notes -->


|x2= <sqf>player set3DENLayer -1; // Move to root</sqf>


<h3 style='display:none'>Bottom Section</h3>
|seealso= [[add3DENLayer]] [[remove3DENLayer]] [[get3DENLayerEntities]]
{{GameCategory|arma3|New Scripting Commands}}
}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]

Latest revision as of 13:30, 3 January 2026

Hover & click on the images for description

Description

Description:
Set layer for Eden Entity.
Groups:
Eden Editor

Syntax

Syntax:
entity set3DENLayer layerID
Parameters:
entity: Eden Entity
layerID: Number - layer ID as returned by add3DENLayer command
Return Value:
Boolean - true if the entity was moved succesfully

Examples

Example 1:
private _myLayer = -1 add3DENLayer "CTRG"; player set3DENLayer _myLayer;
Example 2:
player set3DENLayer -1; // Move to root

Additional Information

See also:
add3DENLayer remove3DENLayer get3DENLayerEntities

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord.
Only post proven facts here! Add Note