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

◆ OnWasAttached()

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

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

1399 {
1400 MiscGameplayFunctions.RemoveAllAttachedChildrenByTypename(this, {Bolt_Base});
1401
1402 super.OnWasAttached(parent, slot_id);
1403
1404 if (HasQuantity())
1405 UpdateNetSyncVariableFloat("m_VarQuantity", GetQuantityMin(), m_VarQuantityMax);
1406
1407 if (g_Game.IsServer() || !g_Game.IsMultiplayer()) // single player or server side multiplayer
1408 StartItemSoundServer(SoundConstants.ITEM_ATTACH, slot_id);
1409 }
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().