get3DENSelected: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Fixed syntax)
m (Fix)
 
(49 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma3dev |= Game name
|game1= arma3
|version1= 1.56


|1.52|= Game version
|gr1= Eden Editor
____________________________________________________________________________________________


| Returns an array of all selected 3DEN Editor entities, including groups, waypoints, and markers. |= Description
|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.


| '''get3DENSelected''' "" |= Syntax
|s1= [[get3DENSelected]] type
| [[Array]] in format: [objects,groups,triggers,logic,[[waypoints]],markers]|= RETURNVALUE


|s2= '''get3DENSelected''' type |= Syntax
|p1= type: [[String]] - entity type, can be one of:
|p21= type: [[String]] - entity type:<br/>
{{Columns|2|
* object
* {{hl|"object"}}
* group
* {{hl|"group"}}
* trigger
* {{hl|"trigger"}}
* logic
* {{hl|"logic"}}
* waypoint
* {{hl|"waypoint"}}
* marker
* {{hl|"marker"}}
<br/>|= PARAMETER1
* {{hl|"layer"}}
|r2= [[Array]] |= RETURNVALUE
* {{hl|"comment"}}
* {{hl|""}} - everything but "layer" and "comment"
}}


|x1= <code>[[systemChat]] [[str]] ([[get3DENSelected]] "");
|r1= [[Array]] - array of entities
/* outputs: [
[B Clockblocker 2-1:1],//objects
[B Clockblocker 2-1],//groups
[164494: <no shape>],//triggers
[<No center> Charlie 1-2:4],//logic
[ [B Clockblocker 2-1,0] ],//waypoints
["Hotel_Whiskey"]//markers
]*/</code>|= EXAMPLE1
|x2= <code>[[systemChat]] [[str]] ([[get3DENSelected]] "object");
// outputs: [B Clockblocker 2-1:1]</code>|= EXAMPLE2
____________________________________________________________________________________________


|  
|x1= <sqf>
[[get3DENMouseOver]]
get3DENSelected "";
[[add3DENConnection]]
[[add3DENEventHandler]]
[[all3DENEntities]]
[[collect3DENHistory]]
[[create3DENComposition]]
[[create3DENEntity]]
[[current3DENOperation]]
[[delete3DENEntities]]
[[do3DENAction]]
[[get3DENActionState]]
[[get3DENAttribute]]
[[get3DENCamera]]
[[get3DENConnections]]
[[get3DENEntityID]]
[[get3DENGrid]] 
[[get3DENIconsVisible]]
[[get3DENLinesVisible]]
[[get3DENSelected]]
[[is3DEN]]
[[is3DENMultiplayer]]
[[move3DENCamera]]
[[remove3DENConnection]]
[[remove3DENEventHandler]]
[[removeAll3DENEventHandlers]]
[[set3DENAttributes]]
[[set3DENGrid]]
[[set3DENIconsVisible]]
[[set3DENLinesVisible]]
[[set3DENObjectType]]
|= SEEALSO
|  |= MPBEHAVIOUR
____________________________________________________________________________________________
}}


<h3 style='display:none'>Notes</h3>
/*
<dl class='command_description'>
[
<!-- Note Section BEGIN -->
[B Alpha 2-1:1], // objects
<!-- Note Section END -->
[B Alpha 2-1], // groups
</dl>
[164494: <no shape>], // triggers
<!-- DISCONTINUE Notes -->
[<No center> Charlie 1-2:4], // logic
[<nowiki/>[B Alpha 2-1,0]], // waypoints
["Hotel_Whiskey"] // markers
]
*/
</sqf>


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


<h3 style='display:none'>Bottom Section</h3>
|seealso= [[all3DENEntities]] [[get3DENMouseOver]] [[delete3DENEntities]]
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: 3DEN|{{uc:{{PAGENAME}}}}]]

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