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

◆ OnWasAttached()

override void InventoryItem::OnWasAttached ( EntityAI parent,
int slot_id )
inlineprivate

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

1380 {
1381 MiscGameplayFunctions.RemoveAllAttachedChildrenByTypename(this, {Bolt_Base});
1382
1383 super.OnWasAttached(parent, slot_id);
1384
1385 if (HasQuantity())
1386 UpdateNetSyncVariableFloat("m_VarQuantity", GetQuantityMin(), m_VarQuantityMax);
1387
1388 PlayAttachSound(InventorySlots.GetSlotName(slot_id));
1389 }
override bool HasQuantity()
Определения ItemBase.c:3381
void PlayAttachSound(string slot_type)
Plays sound on item attach. Be advised, the config structure may slightly change in 1....
Определения ItemBase.c:4382
override int GetQuantityMin()
Определения ItemBase.c:3370
int m_VarQuantityMax
Определения ItemBase.c:33

Перекрестные ссылки GetQuantityMin(), InventorySlots::GetSlotName(), HasQuantity(), m_VarQuantityMax и PlayAttachSound().