get3DENSelected: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 6: | Line 6: | ||
|gr1= Eden Editor | |gr1= Eden Editor | ||
|descr= 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.<br> | ||
If a wrong type is provided, <tt>[[], [], [], [], [], []]</tt> is returned and an error message is shown. | |||
|s1= [[get3DENSelected]] | |s1= [[get3DENSelected]] type | ||
|p1= type: [[String]] - Entity type, can be: | |p1= type: [[String]] - Entity type, can be one of: | ||
{{Columns|2| | |||
* <tt>"object"</tt> | * <tt>"object"</tt> | ||
* <tt>"group"</tt> | * <tt>"group"</tt> | ||
Line 19: | Line 21: | ||
* <tt>"layer"</tt> | * <tt>"layer"</tt> | ||
* <tt>"comment"</tt> | * <tt>"comment"</tt> | ||
* <tt>""</tt> - | * <tt>""</tt> - everything but "layer" and "comment" | ||
|shrink= y | |||
}} | |||
|r1= [[Array]] - | |r1= [[Array]] - array of entities | ||
|x1= <code>[[get3DENSelected]] ""; | |x1= <code>[[get3DENSelected]] ""; | ||
{{ | {{codecomment| | ||
[B Alpha 2-1:1],//objects | /* | ||
[B Alpha 2-1],//groups | [ | ||
[164494: <no shape>],//triggers | [B Alpha 2-1:1], // objects | ||
[<No center> Charlie 1-2:4],//logic | [B Alpha 2-1], // groups | ||
[ [B Alpha 2-1,0] ],//waypoints | [164494: <no shape>], // triggers | ||
["Hotel_Whiskey"]//markers | [<No center> Charlie 1-2:4], // logic | ||
]}}</code> | [<nowiki/>[B Alpha 2-1,0]], // waypoints | ||
["Hotel_Whiskey"] // markers | |||
] | |||
<nowiki/>*/}}</code> | |||
|x2= <code>[[get3DENSelected]] "object"; {{cc| | |x2= <code>[[get3DENSelected]] "object"; {{cc|[B Alpha 2-1:1]}}</code> | ||
|seealso= [[all3DENEntities]] [[get3DENMouseOver]] [[delete3DENEntities]] | |seealso= [[all3DENEntities]] [[get3DENMouseOver]] [[delete3DENEntities]] | ||
}} | }} |
Revision as of 09:51, 20 September 2021
Description
- Description:
- Returns an array of all selected Eden Editor Entities of the given type.
If a wrong type is provided, [[], [], [], [], [], []] is returned and an error message is shown. - Groups:
- Eden Editor
Syntax
- Syntax:
- get3DENSelected type
- Parameters:
- type: String - Entity type, can be one of:
- "object"
- "group"
- "trigger"
- "logic"
- "waypoint"
- "marker"
- "layer"
- "comment"
- "" - everything but "layer" and "comment"
- Return Value:
- Array - array of entities
Examples
- Example 1:
get3DENSelected ""; /* [ [B Alpha 2-1:1], // objects [B Alpha 2-1], // groups [164494: <no shape>], // triggers [<No center> Charlie 1-2:4], // logic [[B Alpha 2-1,0]], // waypoints ["Hotel_Whiskey"] // markers ] */
- Example 2:
get3DENSelected "object"; // [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