get3DENSelected: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns an array of all selected 3DEN Editor entities, including groups, waypoints, and markers. |= Description
| Returns an array of all selected [[Eden Entity|Eden Editor Entities]], including groups, waypoints, and markers. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|s2= '''get3DENSelected''' type |= Syntax
|s2= '''get3DENSelected''' type |= Syntax
|p21= type: [[String]] - entity type:<br/>
|p21= type: [[String]] - entity type, can be:<br/>
* object
* "object"
* group
* "group"
* trigger
* "trigger"
* logic
* "logic"
* waypoint
* "waypoint"
* marker
* "marker"
<br/>|= PARAMETER1
<br/>|= PARAMETER1
|r2= [[Array]] |= RETURNVALUE  
|r2= [[Array]] |= RETURNVALUE  
Line 26: Line 26:
|x1= <code>[[systemChat]] [[str]] ([[get3DENSelected]] "");
|x1= <code>[[systemChat]] [[str]] ([[get3DENSelected]] "");
/* outputs: [
/* outputs: [
[B Clockblocker 2-1:1],//objects
[B Alpha 2-1:1],//objects
[B Clockblocker 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 Clockblocker 2-1,0] ],//waypoints
[ [B Alpha 2-1,0] ],//waypoints
["Hotel_Whiskey"]//markers
["Hotel_Whiskey"]//markers
]*/</code>|= EXAMPLE1  
]*/</code>|= EXAMPLE1  
|x2= <code>[[systemChat]] [[str]] ([[get3DENSelected]] "object");
|x2= <code>[[systemChat]] [[str]] ([[get3DENSelected]] "object");
// outputs: [B Clockblocker 2-1:1]</code>|= EXAMPLE2
// outputs: [B Alpha 2-1:1]</code>|= EXAMPLE2
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 17:22, 2 November 2015

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.52|1.52]]
Hover & click on the images for description

Description

Description:
Returns an array of all selected Eden Editor Entities, including groups, waypoints, and markers.
Groups:
Uncategorised

Syntax

Syntax:
get3DENSelected ""
Return Value:
Array of Eden Entities

Alternative Syntax

Syntax:
get3DENSelected type
Parameters:
type: String - entity type, can be:
  • "object"
  • "group"
  • "trigger"
  • "logic"
  • "waypoint"
  • "marker"

Return Value:
Array

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 get3DENSelected 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

[[Category:Introduced with arma3dev version 1.52]][[ Category: arma3dev: New Scripting Commands | GET3DENSELECTED]][[ Category: arma3dev: Scripting Commands | GET3DENSELECTED]]

Notes


Bottom Section