namedProperties: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) (Add 2.14's alternative syntax) |
||
Line 8: | Line 8: | ||
|descr= Returns a list of named properties on Geometry LOD. | |descr= Returns a list of named properties on Geometry LOD. | ||
|s1= [[namedProperties]] | |s1= [[namedProperties]] object | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|r1= [[Array]] of [[Array]]s of [[String]]s, in format: <nowiki>[</nowiki>[namedProperty1, propertyValue1], [namedProperty2, propertyValue2], ...] | |r1= [[Array]] of [[Array]]s of [[String]]s, in format: <nowiki>[</nowiki>[namedProperty1, propertyValue1], [namedProperty2, propertyValue2], ...] | ||
|s2= object [[namedProperties]] [LOD] | |||
|s2since= arma3 2.14 | |||
|p21= object: [[Object]] | |||
|p22= LOD: [[String]] or [[Number]] - can be one of: | |||
* {{hl|"Memory"}} | |||
* {{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]] | |||
|r2= [[HashMap]] | |||
|x1= <sqf>private _properties = namedProperties _object; // [["sbsource","shadowvolume"],["prefershadowvolume","1"],["reversed","1"],["buoyancy","1"]]</sqf> | |x1= <sqf>private _properties = namedProperties _object; // [["sbsource","shadowvolume"],["prefershadowvolume","1"],["reversed","1"],["buoyancy","1"]]</sqf> | ||
|x2= <sqf>private _namedProperties = cursorObject namedProperties ["FireGeometry"];</sqf> | |||
|seealso= [[selectionNames]] [[animationNames]] [[Arma 3: Named Properties]] [[allLODs]] | |seealso= [[selectionNames]] [[animationNames]] [[Arma 3: Named Properties]] [[allLODs]] | ||
}} | }} |
Latest revision as of 15:40, 20 March 2023
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"
- Return Value:
- HashMap
Examples
- Example 1:
- Example 2:
Additional Information
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