create3DENEntity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *s([0-9]) *= ([^ ]+)? ?'''([a-zA-Z0-9_]+)''' ?([^ ]+)? " to " |s$1= $2 $3 $4 ")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=")
Line 11: Line 11:
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.
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.


| '''create3DENEntity''' [mode, class, position, (isEmpty)]
|s1=  '''create3DENEntity''' [mode, class, position, (isEmpty)]
 
|p1= mode: [[String]] - can be "Object", "Trigger", "Waypoint", "Logic" or "Marker"
|p1= mode: [[String]] - can be "Object", "Trigger", "Waypoint", "Logic" or "Marker"
|p2= class: [[String]] - entity class, defined in one of the following classes:
|p2= class: [[String]] - entity class, defined in one of the following classes:

Revision as of 00:15, 13 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Eden Editor

Syntax

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

Alternative Syntax

Syntax:
group create3DENEntity [mode, class, position, (isEmpty)]
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" or "Marker"
class: String - entity class
position: Array in format Position
isEmpty (Optional): Boolean - 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:
See also needed

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 June 14, 2016 - 18:45 (UTC)
Gippo
Mode can also be "Logic". Not sure if it is a replacement for "System" or a it is a completely separate mode.
Posted on September 6, 2019 - 08:33 (UTC)
R3vo
To create a waypoint use the alternativ syntax and pass the group to it which should receive it.