get3DENSelected: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Some wiki formatting)
Line 27: Line 27:
|r1= [[Array]] - array of entities
|r1= [[Array]] - array of entities


|x1= <code>[[get3DENSelected]] "";
|x1= <sqf>
get3DENSelected "";


/*
/*
Line 35: Line 36:
[164494: <no shape>], // triggers
[164494: <no shape>], // triggers
[<No center> Charlie 1-2:4], // logic
[<No center> Charlie 1-2:4], // logic
[<nowiki/>[B Alpha 2-1,0]], // waypoints
[[B Alpha 2-1,0]], // waypoints
["Hotel_Whiskey"] // markers
["Hotel_Whiskey"] // markers
]
]
<nowiki/>*/</code>
*/
</sqf>


|x2= <sqf>get3DENSelected "object"; // [B Alpha 2-1:1]</sqf>
|x2= <sqf>get3DENSelected "object"; // [B Alpha 2-1:1]</sqf>

Revision as of 14:35, 13 May 2022

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