create3DENEntity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added example for creating a trigger)
No edit summary
Line 65: Line 65:
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Eden Editor|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: Eden Editor|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on March 29, 2016 - 23:01 (UTC)</dd>
<dt class="note">[[User:Revo|Revo]]</dt>
<dd class="note">
The classnames for triggers can be found in the config class CfgNonAIVehicles
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 00:01, 30 March 2016

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.

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.
Groups:
Uncategorised

Syntax

Syntax:
create3DENEntity [mode, class, position, (isEmpty)]
Parameters:
mode: String - can be "Object", "Trigger", "Waypoint", "System" or "Marker"
class: String - entity class, defined in one of the following classes:
  • CfgVehicles - objects and systems
  • CfgNonAIVehicles - triggers
  • CfgWaypoint - waypoints
  • CfgMarkers - markers
position: Array in format Position
isEmpty (Optional): Bool - true to create vehicle without crew (default: false)
Return Value:
Eden Entity

Alternative Syntax

Syntax:
group create3DENEntity [mode, class, position, (isEmpty)]
Parameters:
group: Group - group in which an AI character or waypoint is created.
mode: String - can be "Object", "Trigger", "Waypoint", "System" or "Marker"
class: String - entity class
position: Array in format Position
isEmpty (Optional): Bool - true to create vehicle without crew (default: false)
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",position player];
Example 4:
mytrigger = create3DENEntity ["Trigger","EmptyDetectorArea10x10",position player];

Additional Information

See also:
create3DENComposition delete3DENEntities

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

Notes


Bottom Section

Posted on March 29, 2016 - 23:01 (UTC)
Revo
The classnames for triggers can be found in the config class CfgNonAIVehicles