create3DENEntity: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 12: Line 12:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''create3DENEntity''' [mode, class, position] |= Syntax
| '''create3DENEntity''' [mode, class, position, (isEmpty)] |= Syntax
|p1= mode: [[String]] - can be "Object", "Trigger", "Waypoint", "System" or "Marker" |= PARAMETER1
|p1= mode: [[String]] - can be "Object", "Trigger", "Waypoint", "System" 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:
Line 21: Line 21:
   |= PARAMETER2
   |= PARAMETER2
|p3= position: [[Array]] in format [[Position]]  |= PARAMETER3
|p3= position: [[Array]] in format [[Position]]  |= PARAMETER3
|p4= isEmpty (Optional): [[Bool]] - [[true]] to create vehicle without crew (default: [[false]])  |= PARAMETER4
| [[Eden Entity]] |= RETURNVALUE  
| [[Eden Entity]] |= RETURNVALUE  


| s2= group '''create3DENEntity''' [mode, class, position] |= Syntax
| s2= group '''create3DENEntity''' [mode, class, position, (isEmpty)] |= Syntax
|p21= group: [[Group]] - group in which an AI character or waypoint is created. |= Parameter 1
|p21= group: [[Group]] - group in which an AI character or waypoint is created. |= Parameter 1
* When missing for AI characters, new group is created for them
* When missing for AI characters, new group is created for them
Line 32: Line 33:
|p23= class: [[String]] - entity class |= Parameter 3
|p23= class: [[String]] - entity class |= Parameter 3
|p24= position: [[Array]] in format [[Position]] |= Parameter 4
|p24= position: [[Array]] in format [[Position]] |= Parameter 4
|p25= isEmpty (Optional): [[Bool]] - [[true]] to create vehicle without crew (default: [[false]]) |= Parameter 5
| r2= [[Eden Entity]] |= Return value
| r2= [[Eden Entity]] |= Return value



Revision as of 10:05, 12 November 2015

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.52|1.52]]
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];

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

[[Category:Introduced with arma3dev version 1.52]][[ Category: arma3dev: New Scripting Commands | CREATE3DENENTITY]][[ Category: arma3dev: Scripting Commands | CREATE3DENENTITY]]

Notes


Bottom Section