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

◆ GenerateRandomEquip()

void MenuDefaultCharacterData::GenerateRandomEquip ( )
inlineprivate

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

1018 {
1020
1021 int slot_ID;
1022 string attachment_type;
1023 for (int i = 0; i < DefaultCharacterCreationMethods.GetAttachmentSlotsArray().Count(); i++)
1024 {
1025 slot_ID = DefaultCharacterCreationMethods.GetAttachmentSlotsArray().Get(i);
1026 if (DefaultCharacterCreationMethods.GetConfigArrayCountFromSlotID(slot_ID) > 0)
1027 {
1028 attachment_type = DefaultCharacterCreationMethods.GetConfigAttachmentTypes(slot_ID).GetRandomElement();
1029 //if (attachment_type != "")
1030 SetDefaultAttachment(slot_ID,attachment_type);
1031 }
1032 }
1033 }
@ Count
Определения RandomGeneratorSyncManager.c:8
void ClearAttachmentsMap()
Определения gameplay.c:1007
void SetDefaultAttachment(int slotID, string type)
Определения gameplay.c:1012

Перекрестные ссылки ClearAttachmentsMap(), Count и SetDefaultAttachment().

Используется в Managed::CreateNewCharacterByName(), MissionBase::OnClientNewEvent() и UIScriptedMenu::RandomizeCharacter().