DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
 
Loading...
Searching...
No Matches
HiddenSelectionsData.c
Go to the documentation of this file.
2{
6
8
9 void HiddenSelectionsData(string type)
10 {
11 GetGame().ConfigGetTextArray( string.Format("CfgVehicles %1 hiddenSelections", type), m_HiddenSelections );
12 GetGame().ConfigGetTextArray( string.Format("CfgVehicles %1 hiddenSelectionsTextures", type), m_HiddenSelectionsTextures );
13 GetGame().ConfigGetTextArray( string.Format("CfgVehicles %1 hiddenSelectionsMaterials", type), m_HiddenSelectionsMaterials );
14
15 for (int i = 0; i < m_HiddenSelections.Count(); ++i)
17 }
18
19 int GetHiddenSelectionIndex(string selection)
20 {
21 int index;
22 if (m_HiddenSelectionNameToIndex.Find(selection, index))
23 return index;
24
25 return -1;
26 }
27
29 {
31 }
32
34 {
36 }
37
39 {
40 array<string> hiddenSelections = new array<string>;
41 GetGame().ConfigGetTextArray( string.Format("CfgVehicles %1 hiddenSelections", type), hiddenSelections );
42 return hiddenSelections;
43 }
44
46 {
47 array<string> hiddenSelectionsTextures = new array<string>;
48 GetGame().ConfigGetTextArray( string.Format("CfgVehicles %1 hiddenSelectionsTextures", type), hiddenSelectionsTextures );
49 return hiddenSelectionsTextures;
50 }
51
53 {
54 array<string> hiddenSelectionsMaterials = new array<string>;
55 GetGame().ConfigGetTextArray( string.Format("CfgVehicles %1 hiddenSelectionsMaterials", type), hiddenSelectionsMaterials );
56 return hiddenSelectionsMaterials;
57 }
58}
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
ref map< string, int > m_HiddenSelectionNameToIndex
static array< string > GetHiddenSelectionsConfig(string type)
ref array< string > m_HiddenSelectionsMaterials
ref array< string > m_HiddenSelections
TStringArray GetHiddenSelectionsTextures()
ref array< string > m_HiddenSelectionsTextures
int GetHiddenSelectionIndex(string selection)
TStringArray GetHiddenSelectionsMaterials()
static array< string > GetHiddenSelectionsMaterialsConfig(string type)
void HiddenSelectionsData(string type)
static array< string > GetHiddenSelectionsTexturesConfig(string type)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()