107 {
108 array<LOD> lods = new array<LOD>;
110
111 for ( int i = 0; i < lods.Count(); ++i )
112 {
113 string lod_name =
GetLODName( lods.Get( i ) );
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.