namedProperties: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (2.00 update)
(Add 2.14's alternative syntax)
 
(26 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 2.00


| 2.00 |Game version=
|gr1= Object Manipulation


|gr1= Object Manipulation |GROUP1=
|descr= Returns a list of named properties on Geometry LOD.
____________________________________________________________________________________________


| Returns a list of named properties on Geometry LOD. |DESCRIPTION=
|s1= [[namedProperties]] object
____________________________________________________________________________________________


| [[namedProperties]] object |SYNTAX=
|p1= object: [[Object]]


|p1= object - [[Object]] |PARAMETER1=
|r1= [[Array]] of [[Array]]s of [[String]]s, in format: <nowiki>[</nowiki>[namedProperty1, propertyValue1], [namedProperty2, propertyValue2], ...]


| [[Array]] of [[Array]]s |RETURNVALUE=
|s2= object [[namedProperties]] [LOD]
____________________________________________________________________________________________


|x1= <code>_properties = [[namedProperties]] _object;</code> |Example1=
|s2since= arma3 2.14
____________________________________________________________________________________________


| [[selectionNames]], [[animationNames]], [[Named Properties]] |SEEALSO=
|p21= object: [[Object]]
}}


<h3 style="display:none">Notes</h3>
|p22= LOD: [[String]] or [[Number]] - can be one of:
<dl class="command_description">
* {{hl|"Memory"}}
<!-- Note Section BEGIN -->
* {{hl|"Geometry"}}
* {{hl|"FireGeometry"}}
* {{hl|"LandContact"}}
* {{hl|"HitPoints"}}
* {{hl|"ViewGeometry"}}
When [[Number]] is used, command searches for a LOD with the similar [[LOD resolutions|LOD resolution]]


<!-- Note Section END -->
|r2= [[HashMap]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>private _properties = namedProperties _object; // [["sbsource","shadowvolume"],["prefershadowvolume","1"],["reversed","1"],["buoyancy","1"]]</sqf>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|x2= <sqf>private _namedProperties = cursorObject namedProperties ["FireGeometry"];</sqf>
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]


<!-- CONTINUE Notes -->
|seealso= [[selectionNames]] [[animationNames]] [[Arma 3: Named Properties]] [[allLODs]]
<!-- DISCONTINUE Notes -->
}}

Latest revision as of 15:40, 20 March 2023

Hover & click on the images for description

Description

Description:
Returns a list of named properties on Geometry LOD.
Groups:
Object Manipulation

Syntax

Syntax:
namedProperties object
Parameters:
object: Object
Return Value:
Array of Arrays of Strings, in format: [[namedProperty1, propertyValue1], [namedProperty2, propertyValue2], ...]

Alternative Syntax

Syntax:
object namedProperties [LOD]
Parameters:
object: Object
LOD: String or Number - can be one of:
  • "Memory"
  • "Geometry"
  • "FireGeometry"
  • "LandContact"
  • "HitPoints"
  • "ViewGeometry"
When Number is used, command searches for a LOD with the similar LOD resolution
Return Value:
HashMap

Examples

Example 1:
private _properties = namedProperties _object; // [["sbsource","shadowvolume"],["prefershadowvolume","1"],["reversed","1"],["buoyancy","1"]]
Example 2:
private _namedProperties = cursorObject namedProperties ["FireGeometry"];

Additional Information

See also:
selectionNames animationNames Arma 3: Named Properties allLODs

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