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

◆ OnWasAttached()

override void OnWasAttached ( EntityAI parent,
int slot_id )
private

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

1327 {
1328 MiscGameplayFunctions.RemoveAllAttachedChildrenByTypename(this, {Bolt_Base});
1329
1330 super.OnWasAttached(parent, slot_id);
1331
1332 if (HasQuantity())
1333 UpdateNetSyncVariableFloat("m_VarQuantity", GetQuantityMin(), GetQuantityMax());
1334
1335 if ((g_Game.IsServer() || !g_Game.IsMultiplayer()) && CanPlayAttachSound()) // single player or server side multiplayer
1336 StartItemSoundServer(SoundConstants.ITEM_ATTACH, slot_id);
1337 }
DayZGame g_Game
Определения DayZGame.c:4074
override int GetQuantityMin()
Определения ItemBase.c:3470
override bool HasQuantity()
Определения ItemBase.c:3481
void StartItemSoundServer(int id, int slotId)
Определения ItemBase.c:4436
bool CanPlayAttachSound()
Определения ItemBase.c:4853
override int GetQuantityMax()
Определения ItemBase.c:3435
Определения AmmunitionPiles.c:84

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

Используется в Entity::EEItemLocationChanged().