DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ GetLODByName()

LOD IEntity::GetLODByName ( string name)
inlineprivate

Retrieve LOD by given name.

См. определение в файле Object.c строка 106

107 {
108 array<LOD> lods = new array<LOD>;
109 GetLODS( lods );
110
111 for ( int i = 0; i < lods.Count(); ++i )
112 {
113 string lod_name = GetLODName( lods.Get( i ) );
114 lod_name.ToLower();
115 name.ToLower();
116 if ( lod_name == name )
117 {
118 return lods.Get( i );
119 }
120 }
121
122 return NULL;
123 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto native bool GetLODS(notnull out array< LOD > lods)
Retrieve all LODS.
proto native owned string GetLODName(LOD lod)
Retrieve LOD name.
proto int ToLower()
Changes string to lowercase. Returns length.

Перекрестные ссылки GetLODName(), GetLODS(), name и string::ToLower().