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

◆ OnWasAttached() [3/3]

override void InventoryItemSuper::OnWasAttached ( EntityAI parent,
int slot_id )
inlineprotected

См. определение в файле 4_World/DayZ/Entities/Core/Inherited/InventoryItem.c строка 293

294 {
295 super.OnWasAttached(parent, slot_id);
296
297 #ifndef SERVER
298 EffectSound effect = SEffectManager.PlaySound(m_AttachSound, GetPosition());
299 effect.SetAutodestroy(true);
300 #endif
301 }
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Определения EffectSound.c:603
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

Перекрестные ссылки GetPosition(), m_AttachSound, SEffectManager::PlaySound() и EffectSound::SetAutodestroy().