create3DENEntity: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Reverted to revision 97389 by Ffur2007slx2 5 on 2016-09-18T12:05:50Z) |
m (template:command argument fix) |
||
Line 13: | Line 13: | ||
| '''create3DENEntity''' [mode, class, position, (isEmpty)] |= Syntax | | '''create3DENEntity''' [mode, class, position, (isEmpty)] |= Syntax | ||
|p1= mode: [[String]] - can be "Object", "Trigger", "Waypoint", "Logic" or "Marker" |= | |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 | * ''CfgVehicles'' - objects and logic entities | ||
Line 19: | Line 19: | ||
* ''CfgWaypoint'' - waypoints | * ''CfgWaypoint'' - waypoints | ||
* ''CfgMarkers'' - markers | * ''CfgMarkers'' - markers | ||
|= | |PARAMETER2= | ||
|p3= position: [[Array]] in format [[Position]] |= | |p3= position: [[Array]] in format [[Position]] |PARAMETER3= | ||
|p4= isEmpty (Optional): [[Bool]] - [[true]] to create vehicle without crew (default: [[false]]) |= | |p4= isEmpty (Optional): [[Bool]] - [[true]] to create vehicle without crew (default: [[false]]) |PARAMETER4= | ||
| [[Eden Entity]] |= | | [[Eden Entity]] |RETURNVALUE= | ||
| s2= group '''create3DENEntity''' [mode, class, position, (isEmpty)] |= Syntax | | s2= group '''create3DENEntity''' [mode, class, position, (isEmpty)] |= Syntax | ||
Line 37: | Line 37: | ||
|x1= <code>dude1 = [[create3DENEntity]] ["Object","B_Soldier_F",[[screenToWorld]] [0.5,0.5]];</code>|= | |x1= <code>dude1 = [[create3DENEntity]] ["Object","B_Soldier_F",[[screenToWorld]] [0.5,0.5]];</code>|EXAMPLE1= | ||
|x2= <code>dude2 = ([[group]] dude1) [[create3DENEntity]] ["Object","B_Soldier_AR_F",[[screenToWorld]] [0.5,0.5]];</code>|= | |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>|= | |x3= <code>myMarker = [[create3DENEntity]] ["Marker","mil_warning",[[position]] [[player]]];</code>|EXAMPLE3= | ||
|x4= <code>mytrigger = [[create3DENEntity]] ["Trigger","EmptyDetectorArea10x10",[[position]] [[player]]];</code>|= | |x4= <code>mytrigger = [[create3DENEntity]] ["Trigger","EmptyDetectorArea10x10",[[position]] [[player]]];</code>|EXAMPLE4= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 47: | Line 47: | ||
[[create3DENComposition]] | [[create3DENComposition]] | ||
[[delete3DENEntities]] | [[delete3DENEntities]] | ||
|= | |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:30, 7 April 2019
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", "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): 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", "Logic" 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
- Posted on June 14, 2016 - 18:45 (UTC)
- Gippo
- Mode can also be "Logic". Not sure if it's a replacement for "System" or a it's a completely separate mode.