create3DENEntity: Difference between revisions
Jump to navigation
Jump to search
(description and see also updated with add3DENLayer) |
(Removed isEmpty argument from alt syntax as it's not supported (Thanks Eathox)) |
||
Line 25: | Line 25: | ||
|r1= [[Eden Entity]] | |r1= [[Eden Entity]] | ||
|s2= group [[create3DENEntity]] [mode, class, position | |s2= group [[create3DENEntity]] [mode, class, position] | ||
|p21= group: [[Group]] - group in which an AI character or waypoint is created. | |p21= group: [[Group]] - group in which an AI character or waypoint is created. | ||
Line 37: | Line 37: | ||
|p24= position: [[Array]] of [[Position]] | |p24= position: [[Array]] of [[Position]] | ||
|r2= [[Eden Entity]] | |r2= [[Eden Entity]] |
Revision as of 21:59, 12 October 2023
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 2.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 of Positions
- 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, new group is created for them
- 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
- mode: String - can be "Object", "Trigger", "Waypoint", "Logic", "Marker" or 2.14 "Comment"
- class: String - entity class
- position: Array of Position
- Return Value:
- Eden Entity
Examples
- Example 1:
- Example 2:
- Example 3:
- Example 4:
- Example 5:
- 2.06 Create a shape marker:
m = create3DENEntity ["Marker", "", position player]; // default rectangular marker m set3DENAttribute ["markerType", 1]; // 0 - rectangle; 1 - ellipse m set3DENAttribute ["brush", "DiagGrid"];
Additional Information
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
- 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.
- Posted on Oct 09, 2022 - 07:26 (UTC)
- Due to an unknown reason, you cannot create3DENEntity animals, will cause a crash of the game.