get3DENSelected: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\{\{GameCategory\|(arma[0123])\|New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
|arma3|Game name= | |arma3|Game name= | ||
Line 7: | Line 6: | ||
|gr1= Eden Editor |GROUP1= | |gr1= Eden Editor |GROUP1= | ||
| Returns an array of all selected [[Eden Entity|Eden Editor Entities]] of the given type, or, if empty string <tt>""</tt> is used, an array of 6 arrays in the following format: <br><tt>[[/*objects...*/],[/*groups...*/],[/*triggers...*/],[/*logics...*/],[/*waypoints...*/],[/*markers...*/]]</tt><br> Layers and comments are not included in the all types array return. In case a wrong type is used the command will return <tt>[[],[],[],[],[],[]]</tt> and an error message is displayed.|DESCRIPTION= | | Returns an array of all selected [[Eden Entity|Eden Editor Entities]] of the given type, or, if empty string <tt>""</tt> is used, an array of 6 arrays in the following format: <br><tt>[[/*objects...*/],[/*groups...*/],[/*triggers...*/],[/*logics...*/],[/*waypoints...*/],[/*markers...*/]]</tt><br> Layers and comments are not included in the all types array return. In case a wrong type is used the command will return <tt>[[],[],[],[],[],[]]</tt> and an error message is displayed.|DESCRIPTION= | ||
| '''get3DENSelected''' type |SYNTAX= | | '''get3DENSelected''' type |SYNTAX= | ||
Line 37: | Line 34: | ||
|x2= <code>[[systemChat]] [[str]] ([[get3DENSelected]] "object"); | |x2= <code>[[systemChat]] [[str]] ([[get3DENSelected]] "object"); | ||
// outputs: [B Alpha 2-1:1]</code>|EXAMPLE2= | // outputs: [B Alpha 2-1:1]</code>|EXAMPLE2= | ||
| | | | ||
Line 71: | Line 67: | ||
|SEEALSO= | |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 01:20, 17 January 2021
Description
- Description:
- Returns an array of all selected Eden Editor Entities of the given type, or, if empty string "" is used, an array of 6 arrays in the following format:
[[/*objects...*/],[/*groups...*/],[/*triggers...*/],[/*logics...*/],[/*waypoints...*/],[/*markers...*/]]
Layers and comments are not included in the all types array return. In case a wrong type is used the command will return [[],[],[],[],[],[]] and an error message is displayed. - 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 of Eden Entities
Examples
- Example 1:
systemChat str (get3DENSelected ""); /* outputs: [ [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:
systemChat str (get3DENSelected "object"); // outputs: [B Alpha 2-1:1]
Additional Information
- See also:
- get3DENMouseOver add3DENConnection add3DENEventHandler all3DENEntities collect3DENHistory create3DENComposition create3DENEntity current3DENOperation delete3DENEntities do3DENAction get3DENActionState get3DENAttribute get3DENCamera get3DENConnections get3DENEntityID get3DENGrid get3DENIconsVisible get3DENLinesVisible is3DEN is3DENMultiplayer move3DENCamera remove3DENConnection remove3DENEventHandler removeAll3DENEventHandlers set3DENAttributes set3DENGrid set3DENIconsVisible set3DENLinesVisible set3DENObjectType
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
Notes