create3DENEntity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
m (Some wiki formatting)
 
(66 intermediate revisions by 5 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
____________________________________________________________________________________________


| Create new [[Eden Entity]]. Used for creating individual entities; to create a [[Eden_Editor:_Composition|composition]] (e.g., infantry squad), use [[create3DENComposition]].
|descr= Create new [[Eden Entity]]. Used for creating individual entities; to create a [[Eden_Editor:_Composition|composition]] (e.g., infantry squad), use [[create3DENComposition]] and to create a [[Eden_Editor:_Layer|layer]] use [[add3DENLayer]].<br>
<br /><br />
This is the only way to add new editable entities to an [[:Category:Eden Editor|Eden Editor]] scenario. Other 'create' commands like [[createVehicle]] or [[createUnit]] will still work, but the resulting entity will not be editable.
This is the only way how to add new editable entities to [[Eden Editor]] scenario. Other 'create' commands like [[createVehicle]] or [[createUnit]] will still work, but the resulting entity won't be editable. |DESCRIPTION=
 
____________________________________________________________________________________________
|s1= [[create3DENEntity]] [mode, class, position, isEmpty]
 
|p1= mode: [[String]] - can be "Object", "Trigger", "Waypoint", "Logic", "Marker" or {{GVI|arma3|2.14|size= 0.75}} "Comment"


| '''create3DENEntity''' [mode, class, position, (isEmpty)] |SYNTAX=
|p1= mode: [[String]] - can be "Object", "Trigger", "Waypoint", "Logic" or "Marker" |PARAMETER1=
|p2= class: [[String]] - entity class, defined in one of the following classes:
|p2= class: [[String]] - entity class, defined in one of the following classes:
* ''CfgVehicles'' - objects and logic entities
* {{hl|CfgVehicles}} - objects and logic entities
* ''CfgNonAIVehicles'' - triggers
* {{hl|CfgNonAIVehicles}} - triggers
* ''CfgWaypoint'' - waypoints
* {{hl|CfgWaypoint}} - waypoints
* ''CfgMarkers'' - markers
* {{hl|CfgMarkers}} - markers
  |PARAMETER2=
 
|p3= position: [[Array]] in format [[Position]] |PARAMETER3=
|p3= position: [[Array]] format [[Position]]
|p4= isEmpty (Optional): [[Bool]] - [[true]] to create vehicle without crew (default: [[false]])  |PARAMETER4=
| [[Eden Entity]] |RETURNVALUE=


| s2= group '''create3DENEntity''' [mode, class, position, (isEmpty)] |SYNTAX=
|p4= isEmpty: [[Boolean]] - (Optional, default [[false]]) [[true]] to create vehicle without crew
|p21= group: [[Group]] - group in which an AI character or waypoint is created. |PARAMETER1=
 
* When missing for AI characters, new group is created for them
|r1= [[Eden Entity]]
 
|s2= group [[create3DENEntity]] [mode, class, position]
 
|p21= group: [[Group]] - group in which an AI character or waypoint is created.
* When missing for AI characters, a new group is created for them
* When missing for waypoints, an error is logged and nothing is created
* When missing for waypoints, an error is logged and nothing is created
* When used on any other mode, group is ignored and entity is created as usual
* When used on any other mode, it is ignored and the entity is created as usual
|PARAMETER1=
|p22= mode: [[String]] - can be "Object", "Trigger", "Waypoint", "Logic" or "Marker" |PARAMETER2=
|p23= class: [[String]] - entity class |PARAMETER3=
|p24= position: [[Array]] in format [[Position]] |PARAMETER4=
|p25= isEmpty (Optional): [[Bool]] - [[true]] to create vehicle without crew (default: [[false]]) |PARAMETER5=
| r2= [[Eden Entity]] |RETURNVALUE=


|p22= mode: [[String]] - can be "Object", "Trigger", "Waypoint", "Logic", "Marker" or {{GVI|arma3|2.14|size= 0.75}} "Comment"


|x1= <code>dude1 = [[create3DENEntity]] ["Object","B_Soldier_F",[[screenToWorld]] [0.5,0.5]];</code>|EXAMPLE1=
|p23= class: [[String]] - entity class
|x2= <code>dude2 = ([[group]] dude1) [[create3DENEntity]] ["Object","B_Soldier_AR_F",[[screenToWorld]] [0.5,0.5]];</code>|EXAMPLE2=
|x3= <code>myMarker = [[create3DENEntity]] ["Marker","mil_warning",[[position]] [[player]]];</code>|EXAMPLE3=
|x4= <code>mytrigger = [[create3DENEntity]] ["Trigger","EmptyDetectorArea10x10",[[position]] [[player]]];</code>|EXAMPLE4=


____________________________________________________________________________________________
|p24= position: [[Array]] format [[Position]]


|
|r2= [[Eden Entity]]
[[create3DENComposition]]  
 
[[delete3DENEntities]]
|x1= <sqf>dude1 = create3DENEntity ["Object", "B_Soldier_F", screenToWorld [0.5, 0.5]];</sqf>
|SEEALSO=  
 
| |MPBEHAVIOUR=  
|x2= <sqf>dude2 = group dude1 create3DENEntity ["Object", "B_Soldier_AR_F", screenToWorld [0.5, 0.5]];</sqf>
____________________________________________________________________________________________
 
}}
|x3= <sqf>myMarker = create3DENEntity ["Marker", "mil_warning", getPosATL player];</sqf>


<h3 style='display:none'>Notes</h3>
|x4= <sqf>mytrigger = create3DENEntity ["Trigger", "EmptyDetectorArea10x10", getPosATL player];</sqf>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<!-- DISCONTINUE Notes -->


|x5= {{GVI|arma3|2.06|size= 0.75}} Create a shape marker:
<sqf>
m = create3DENEntity ["Marker", "", getPosATL player]; // default rectangular marker
m set3DENAttribute ["markerType", 1]; // 0 - rectangle; 1 - ellipse
m set3DENAttribute ["brush", "DiagGrid"];
</sqf>


<h3 style='display:none'>Bottom Section</h3>
|seealso= [[create3DENComposition]] [[delete3DENEntities]] [[add3DENLayer]]  
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Eden Editor|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
{{Note
<dl class="command_description">
|user= R3vo
<dd class="notedate">Posted on March 29, 2016 - 23:01 (UTC)</dd>
|timestamp= 20190906083300
<dt class="note">[[User:Revo|Revo]]</dt>
|text= To create a waypoint, use the alternative syntax and pass the group which should receive it as the left-hand argument.
<dd class="note">
}}
The classnames for triggers can be found in the config class CfgNonAIVehicles
</dd>
</dl>
<!-- DISCONTINUE Notes -->


<!-- CONTINUE Notes -->
{{Note
<dl class="command_description">
|user= POLPOX
<dd class="notedate">Posted on June 14, 2016 - 18:45 (UTC)</dd>
|timestamp= 20221009072629
<dt class="note">[[User:Gippo|Gippo]]</dt>
|text= Due to an unknown reason, you cannot [[create3DENEntity]] animals, will cause a crash of the game.
<dd class="note">
}}
Mode can also be "Logic". Not sure if it's a replacement for "System" or a it's a completely separate mode.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Latest revision as of 13:16, 4 December 2023

Hover & click on the images for description

Description

Description:
Create new Eden Entity. Used for creating individual entities; to create a composition (e.g., infantry squad), use create3DENComposition and to create a layer use add3DENLayer.
This is the only way to add new editable entities to an Eden Editor scenario. Other 'create' commands like createVehicle or createUnit will still work, but the resulting entity will not be editable.
Groups:
Eden Editor

Syntax

Syntax:
create3DENEntity [mode, class, position, isEmpty]
Parameters:
mode: String - can be "Object", "Trigger", "Waypoint", "Logic", "Marker" or Arma 3 logo black.png2.14 "Comment"
class: String - entity class, defined in one of the following classes:
  • CfgVehicles - objects and logic entities
  • CfgNonAIVehicles - triggers
  • CfgWaypoint - waypoints
  • CfgMarkers - markers
position: Array format Position
isEmpty: Boolean - (Optional, default false) true to create vehicle without crew
Return Value:
Eden Entity

Alternative Syntax

Syntax:
group create3DENEntity [mode, class, position]
Parameters:
group: Group - group in which an AI character or waypoint is created.
  • When missing for AI characters, a new group is created for them
  • When missing for waypoints, an error is logged and nothing is created
  • When used on any other mode, it is ignored and the entity is created as usual
mode: String - can be "Object", "Trigger", "Waypoint", "Logic", "Marker" or Arma 3 logo black.png2.14 "Comment"
class: String - entity class
position: Array format Position
Return Value:
Eden Entity

Examples

Example 1:
dude1 = create3DENEntity ["Object", "B_Soldier_F", screenToWorld [0.5, 0.5]];
Example 2:
dude2 = group dude1 create3DENEntity ["Object", "B_Soldier_AR_F", screenToWorld [0.5, 0.5]];
Example 3:
myMarker = create3DENEntity ["Marker", "mil_warning", getPosATL player];
Example 4:
mytrigger = create3DENEntity ["Trigger", "EmptyDetectorArea10x10", getPosATL player];
Example 5:
Arma 3 logo black.png2.06 Create a shape marker:
m = create3DENEntity ["Marker", "", getPosATL player]; // default rectangular marker m set3DENAttribute ["markerType", 1]; // 0 - rectangle; 1 - ellipse m set3DENAttribute ["brush", "DiagGrid"];

Additional Information

See also:
create3DENComposition delete3DENEntities add3DENLayer

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
R3vo - c
Posted on Sep 06, 2019 - 08:33 (UTC)
To create a waypoint, use the alternative syntax and pass the group which should receive it as the left-hand argument.
POLPOX - c
Posted on Oct 09, 2022 - 07:26 (UTC)
Due to an unknown reason, you cannot create3DENEntity animals, will cause a crash of the game.