allLODs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |descr=" to " |branch= dev |descr=")
m (dev → main)
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command
|game1= arma 3


|game1= arma3
|version1= 2.06
|version1= 2.06


|gr1= Object Manipulation
|gr1= Object Manipulation
|branch= dev


|descr= Returns the list of object or model LODs.
|descr= Returns the list of object or model LODs.


|s1= [[allLODs]] objectOrModel
|s1= [[allLODs]] objectOrModel
|p1= objectOrModel: [[Object]] - object or [[String]] - [[getModelInfo|model path]]
 
|p1= objectOrModel: [[Object]] or [[String]]
* [[Object]] - object
* [[String]] - [[getModelInfo|model path]]


|r1= [[Array]] - List of all model LODs in the following format: [LODindex, LODname, LODresolution, countNamedSelections], where:
|r1= [[Array]] - List of all model LODs in the following format: [LODindex, LODname, LODresolution, countNamedSelections], where:
* LODindex - direct index of the LOD for fast access
* LODindex: [[Number]] - direct index of the LOD for fast access
* LODname - LOD description name for LOD identification
* LODname: [[String]] - LOD description name for LOD identification
* LODresolution - the actual [[LOD_resolutions|LOD resolution]], could be used to select LOD in [[selectionNames]] and [[selectionPosition]]
* LODresolution: [[Number]] - the actual [[LOD_resolutions|LOD resolution]], could be used to select LOD in [[selectionNames]] and [[selectionPosition]]
* countNamedSelections - number of named selections in this LOD, could be returned with [[selectionNames]] command
* countNamedSelections: [[Number]] - number of named selections in this LOD, could be returned with [[selectionNames]] command
 


|x1=<code>[[allLODs]] [[player]];
|x1= <code>[[allLODs]] [[player]];
{{cc|[[0,"1",1,91],[1,"2",2,91],[2,"3",3,84],[3,"4",4,43],[4,"5",5,34],[5,"VIEW_PILOT",1100,89],[6,"shadow(0)",10000,80],[7,"shadow(10)",10010,33],[8,"geometry",1e+013,42],[9,"memory",1e+015,55],[10,"landContact",2e+015,0],[11,"hitpoints",5e+015,33],[12,"geometryView",6e+015,19],[13,"geometryFire",7e+015,57],[14,"shadow(1000)",11000,80],[15,"shadow(1010)",11010,33]]}}</code>
{{codecomment|/*
[
[0,"1",1,91],
[1,"2",2,91],
[2,"3",3,84],
[3,"4",4,43],
[4,"5",5,34],
[5,"VIEW_PILOT",1100,89],
[6,"shadow(0)",10000,80],
[7,"shadow(10)",10010,33],
[8,"geometry",1e+013,42],
[9,"memory",1e+015,55],
[10,"landContact",2e+015,0],
[11,"hitpoints",5e+015,33],
[12,"geometryView",6e+015,19],
[13,"geometryFire",7e+015,57],
[14,"shadow(1000)",11000,80],
[15,"shadow(1010)",11010,33]
]
<nowiki/>*/}}</code>


|x2=<code>[[allLODs]] [[getText]] ([[configFile]] >> "CfgWeapons" >> "arifle_MX_F" >> "model");
|x2= <code>[[allLODs]] [[getText]] ([[configFile]] >> "CfgWeapons" >> "arifle_MX_F" >> "model");
{{cc|[[0,"1",1,17],[1,"2",2,17],[2,"3",3,16],[3,"4",4,14],[4,"5",5,12],[5,"6",6,9],[6,"VIEW_PILOT",1100,16],[7,"shadow(0)",10000,2],[8,"shadow(10)",10010,0],[9,"geometry",1e+013,0],[10,"geometrySimple",2e+013,0],[11,"memory",1e+015,13],[12,"geometryView",6e+015,2],[13,"shadow(1000)",11000,2],[14,"shadow(1010)",11010,0]]}}</code>
{{codecomment|/*
[
[0,"1",1,17],
[1,"2",2,17],
[2,"3",3,16],
[3,"4",4,14],
[4,"5",5,12],
[5,"6",6,9],
[6,"VIEW_PILOT",1100,16],
[7,"shadow(0)",10000,2],
[8,"shadow(10)",10010,0],
[9,"geometry",1e+013,0],
[10,"geometrySimple",2e+013,0],
[11,"memory",1e+015,13],
[12,"geometryView",6e+015,2],
[13,"shadow(1000)",11000,2],
[14,"shadow(1010)",11010,0]
]
<nowiki/>*/}}</code>
|seealso= [[createSimpleObject]], [[hideSelection]], [[selectionNames]], [[selectionPosition]], [[namedProperties]], [[animationNames]], [[LOD resolutions]]
|seealso= [[createSimpleObject]], [[hideSelection]], [[selectionNames]], [[selectionPosition]], [[namedProperties]], [[animationNames]], [[LOD resolutions]]
|
}}
}}
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|New Scripting Commands}}

Revision as of 19:28, 5 October 2021

Hover & click on the images for description

Description

Description:
Returns the list of object or model LODs.
Groups:
Object Manipulation

Syntax

Syntax:
allLODs objectOrModel
Parameters:
objectOrModel: Object or String
Return Value:
Array - List of all model LODs in the following format: [LODindex, LODname, LODresolution, countNamedSelections], where:

Examples

Example 1:
allLODs player; /* [ [0,"1",1,91], [1,"2",2,91], [2,"3",3,84], [3,"4",4,43], [4,"5",5,34], [5,"VIEW_PILOT",1100,89], [6,"shadow(0)",10000,80], [7,"shadow(10)",10010,33], [8,"geometry",1e+013,42], [9,"memory",1e+015,55], [10,"landContact",2e+015,0], [11,"hitpoints",5e+015,33], [12,"geometryView",6e+015,19], [13,"geometryFire",7e+015,57], [14,"shadow(1000)",11000,80], [15,"shadow(1010)",11010,33] ] */
Example 2:
allLODs getText (configFile >> "CfgWeapons" >> "arifle_MX_F" >> "model"); /* [ [0,"1",1,17], [1,"2",2,17], [2,"3",3,16], [3,"4",4,14], [4,"5",5,12], [5,"6",6,9], [6,"VIEW_PILOT",1100,16], [7,"shadow(0)",10000,2], [8,"shadow(10)",10010,0], [9,"geometry",1e+013,0], [10,"geometrySimple",2e+013,0], [11,"memory",1e+015,13], [12,"geometryView",6e+015,2], [13,"shadow(1000)",11000,2], [14,"shadow(1010)",11010,0] ] */

Additional Information

See also:
createSimpleObjecthideSelectionselectionNamesselectionPositionnamedPropertiesanimationNamesLOD resolutions

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