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

◆ OnWasDetached()

override void OnWasDetached ( EntityAI parent,
int slot_id )
private

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

1340 {
1341 super.OnWasDetached(parent, slot_id);
1342
1343 if (HasQuantity())
1344 UpdateNetSyncVariableFloat("m_VarQuantity", GetQuantityMin(), GetQuantityMax());
1345
1346 if ((g_Game.IsServer() || !g_Game.IsMultiplayer()) && CanPlayDetachSound()) // single player or server side multiplayer
1347 StartItemSoundServer(SoundConstants.ITEM_DETACH, slot_id);
1348 }
DayZGame g_Game
Определения DayZGame.c:4074
bool CanPlayDetachSound()
Определения ItemBase.c:4858
override int GetQuantityMin()
Определения ItemBase.c:3470
override bool HasQuantity()
Определения ItemBase.c:3481
void StartItemSoundServer(int id, int slotId)
Определения ItemBase.c:4436
override int GetQuantityMax()
Определения ItemBase.c:3435

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