get3DENAttribute: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
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 the value of the given entity's [[Eden_Editor:_Entity_Attributes|attribute]] in [[Eden Editor]].
| Returns the value of the given entity's [[Eden_Editor:_Entity_Attributes|attribute]] in [[Eden Editor]].
Line 15: Line 13:
{{Important|Attributes are available only within the Eden Editor workspace. You cannot access them in scenario preview or exported scenario!}}
{{Important|Attributes are available only within the Eden Editor workspace. You cannot access them in scenario preview or exported scenario!}}
|DESCRIPTION=
|DESCRIPTION=
____________________________________________________________________________________________


| entity '''get3DENAttribute''' attribute|SYNTAX=
| entity '''get3DENAttribute''' attribute|SYNTAX=
Line 24: Line 21:
|x1= <code>[[systemChat]] [[str]] (([[get3DENMouseOver]] [[select]] 1) [[get3DENAttribute]] "name");
|x1= <code>[[systemChat]] [[str]] (([[get3DENMouseOver]] [[select]] 1) [[get3DENAttribute]] "name");
// returns variable name of object under cursor</code>|EXAMPLE1=  
// returns variable name of object under cursor</code>|EXAMPLE1=  
____________________________________________________________________________________________


|  
|  
Line 34: Line 30:
|SEEALSO=  
|SEEALSO=  
|  |MPBEHAVIOUR=  
|  |MPBEHAVIOUR=  
____________________________________________________________________________________________
}}
}}



Revision as of 02:17, 17 January 2021

Hover & click on the images for description

Description

Description:
Returns the value of the given entity's attribute in Eden Editor.

An attribute is identified by its property (data when it is engine-drive attribute) value in config. For the list of all attributes with their properties, see Setting Attributes.
Attributes are available only within the Eden Editor workspace. You cannot access them in scenario preview or exported scenario!
Groups:
Eden Editor

Syntax

Syntax:
entity get3DENAttribute attribute
Parameters:
entity: Eden Entity or Eden ID
attribute: String - attribute property
Return Value:
Array with Anything

Examples

Example 1:
systemChat str ((get3DENMouseOver select 1) get3DENAttribute "name"); // returns variable name of object under cursor

Additional Information

See also:
set3DENAttribute set3DENAttributes set3DENMissionAttributes get3DENMissionAttribute clear3DENAttribute

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


Bottom Section