get3DENSelected: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "{{GameCategory|arma3|New Scripting Commands}} {{GameCategory|arma3|Scripting Commands}} {{uc:{{PAGENAME}}}}" to "") |
(page overhaul) |
||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
|arma3 | |game1= arma3 | ||
|1.56 | |version1= 1.56 | ||
|gr1= Eden Editor | |gr1= Eden Editor | ||
| Returns an array of all selected [[Eden Entity|Eden Editor Entities]] of the given type | |descr= Returns an array of all selected [[Eden Entity|Eden Editor Entities]] of the given type. | ||
| '''get3DENSelected''' type | |s1= '''get3DENSelected''' type | ||
| | |p1= type: [[String]] - Entity type, can be:<br> | ||
* <tt>"object"</tt> | |||
* <tt>"group"</tt> | |||
* <tt>"trigger"</tt> | |||
* <tt>"logic"</tt> | |||
* <tt>"waypoint"</tt> | |||
* <tt>"marker"</tt> | |||
* <tt>"layer"</tt> | |||
* <tt>"comment"</tt> | |||
* <tt>""</tt> - All types except "layer" and "comment" | |||
|r1= [[Array]] - Array of given entity type or all types except "layer" and "comment". In case of wrong type <tt>[[], [], [], [], [], []]</tt> is returned an an error message is shown | |||
|x1= <code>[[get3DENSelected]] ""; | |||
{{ccml|Returns [ | |||
[B Alpha 2-1:1],//objects | [B Alpha 2-1:1],//objects | ||
[B Alpha 2-1],//groups | [B Alpha 2-1],//groups | ||
Line 31: | Line 32: | ||
[ [B Alpha 2-1,0] ],//waypoints | [ [B Alpha 2-1,0] ],//waypoints | ||
["Hotel_Whiskey"]//markers | ["Hotel_Whiskey"]//markers | ||
] | ]}}</code> | ||
|x2= <code> | |||
|x2= <code>[[get3DENSelected]] "object"; {{cc|Returns [B Alpha 2-1:1]}}</code> | |||
| | |seealso= [[all3DENEntities]] [[get3DENMouseOver]] [[delete3DENEntities]] | ||
[[all3DENEntities]] | |||
[[ | |||
[[delete3DENEntities | |||
}} | }} |
Revision as of 09:09, 18 May 2021
Description
- Description:
- Returns an array of all selected Eden Editor Entities of the given type.
- Groups:
- Eden Editor
Syntax
- Syntax:
- get3DENSelected type
- Parameters:
- type: String - Entity type, can be:
- "object"
- "group"
- "trigger"
- "logic"
- "waypoint"
- "marker"
- "layer"
- "comment"
- "" - All types except "layer" and "comment"
- Return Value:
- Array - Array of given entity type or all types except "layer" and "comment". In case of wrong type [[], [], [], [], [], []] is returned an an error message is shown
Examples
- Example 1:
get3DENSelected ""; Template:ccml
- Example 2:
get3DENSelected "object"; // Returns [B Alpha 2-1:1]
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