get3DENAttribute: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns value of a given entity's [[Eden_Editor:_Entity_Attributes|attribute]] in [[Eden Editor]]. | | Returns value of a given entity's [[Eden_Editor:_Entity_Attributes|attribute]] in [[Eden Editor]]. | ||
<br /><br /> | |||
An attribute is identified by its <tt>property</tt> (<tt>data</tt> when it's engine-drive attribute) value in config. For the list of all attributes with their properties, see [[Eden_Editor:_Setting_Attributes#Attributes|Setting Attributes]]. | |||
{{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 | ||
Line 14: | Line 17: | ||
| entity '''get3DENAttribute''' attribute|= Syntax | | entity '''get3DENAttribute''' attribute|= Syntax | ||
|p1= entity: [[Eden Entity]] | |p1= entity: [[Eden Entity]] | ||
|p2= attribute: [[String]] - attribute | |p2= attribute: [[String]] - attribute property |= PARAMETER1 | ||
| [[Anything]] |= RETURNVALUE | | [[Anything]] |= RETURNVALUE | ||
Revision as of 08:59, 3 March 2016
Description
- Description:
- Returns value of a given entity's attribute in Eden Editor.
An attribute is identified by its property (data when it's engine-drive attribute) value in config. For the list of all attributes with their properties, see Setting Attributes. - Groups:
- Uncategorised
Syntax
- Syntax:
- entity get3DENAttribute attribute
- Parameters:
- entity: Eden Entity
- attribute: String - attribute property
- Return Value:
- Anything
Examples
- Example 1:
systemChat str ((get3DENMouseOver select 1) get3DENAttribute "name"); // returns variable name of object under cursor
Additional Information
- See also:
- get3DENMouseOver add3DENConnection add3DENEventHandler all3DENEntities collect3DENHistory create3DENComposition create3DENEntity current3DENOperation delete3DENEntities do3DENAction get3DENActionState 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
Notes