get3DENSelected: 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 (Fix)
 
(12 intermediate revisions by the same user not shown)
Line 2: Line 2:


|game1= arma3
|game1= arma3
|version1= 1.56
|version1= 1.56


|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, {{hl|[[], [], [], [], [], []]}} is returned and an error message is shown.
 
|s1= [[get3DENSelected]] type


|s1= [[get3DENSelected]] type
|p1= type: [[String]] - entity type, can be one of:
{{Columns|2|
* {{hl|"object"}}
* {{hl|"group"}}
* {{hl|"trigger"}}
* {{hl|"logic"}}
* {{hl|"waypoint"}}
* {{hl|"marker"}}
* {{hl|"layer"}}
* {{hl|"comment"}}
* {{hl|""}} - everything but "layer" and "comment"
}}


|p1= type: [[String]] - Entity type, can be:<br>
|r1= [[Array]] - array of entities
* <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= <sqf>
get3DENSelected "";


|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
[164494: <no shape>],//triggers
[164494: <no shape>], // triggers
[<No center> Charlie 1-2:4],//logic
[<No center> Charlie 1-2:4], // logic
[ [B Alpha 2-1,0] ],//waypoints
[<nowiki/>[B Alpha 2-1,0]], // waypoints
["Hotel_Whiskey"]//markers
["Hotel_Whiskey"] // markers
]}}</code>
]
*/
</sqf>


|x2= <code>[[get3DENSelected]] "object"; {{cc|Returns [B Alpha 2-1:1]}}</code>
|x2= <sqf>get3DENSelected "object"; // [B Alpha 2-1:1]</sqf>


|seealso= [[all3DENEntities]] [[get3DENMouseOver]] [[delete3DENEntities]]
|seealso= [[all3DENEntities]] [[get3DENMouseOver]] [[delete3DENEntities]]
}}
}}

Latest revision as of 19:46, 8 October 2024

Hover & click on the images for description

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

See also:
all3DENEntities get3DENMouseOver 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