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

◆ GetSelectionByName()

Selection LOD::GetSelectionByName ( string name)
inlineprivate

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

223 {
224 array<Selection> selections = new array<Selection>;
225 GetSelections(selections);
226
227 for (int i = 0; i < selections.Count(); ++i)
228 {
229 string selection_name = selections.Get(i).GetName();
230 selection_name.ToLower();
231 name.ToLower();
232 if (selection_name == name)
233 {
234 return selections.Get(i);
235 }
236 }
237
238 return null;
239 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto native bool GetSelections(notnull out array< Selection > selections)
proto int ToLower()
Changes string to lowercase. Returns length.

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

Используется в OnVariablesSynchronized().