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

◆ OnWasDetached()

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

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

1412 {
1413 super.OnWasDetached(parent, slot_id);
1414
1415 if (HasQuantity())
1416 UpdateNetSyncVariableFloat("m_VarQuantity", GetQuantityMin(), m_VarQuantityMax);
1417
1418 if (g_Game.IsServer() || !g_Game.IsMultiplayer()) // single player or server side multiplayer
1419 StartItemSoundServer(SoundConstants.ITEM_DETACH, slot_id);
1420 }
DayZGame g_Game
Определения DayZGame.c:3942
override bool HasQuantity()
Определения ItemBase.c:3503
void StartItemSoundServer(int id, int slotId)
Определения ItemBase.c:4468
override int GetQuantityMin()
Определения ItemBase.c:3492
int m_VarQuantityMax
Определения ItemBase.c:39

Перекрестные ссылки g_Game, GetQuantityMin(), HasQuantity(), m_VarQuantityMax и StartItemSoundServer().