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

◆ GetCurrentLocalPosition()

override vector EffectSound::GetCurrentLocalPosition ( )
inlineprotected

Get the current local position of the managed sound.

Возвращает
vector The current local position of the managed sound

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

757 {
758 Object parent = GetParent();
759
760 if (m_SoundObject)
761 {
762 //TODO(kumarjac): Create and expose 'SoundObject.GetLocalPosition'
763 if (parent)
764 return parent.WorldToModel(m_SoundObject.GetPosition());
765 else
766 return m_SoundObject.GetPosition();
767 }
768 else
769 {
770 if (parent)
771 return GetLocalPosition();
772 else
773 return GetPosition();
774 }
775
776 return vector.Zero;
777 }
vector GetLocalPosition()
Get the local position of the Effect.
Определения Effect.c:513
override Object GetParent()
Get parent for the EffectSound.
Определения EffectSound.c:668
ref SoundObject m_SoundObject
Определения EffectSound.c:22
class LOD Object
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

Перекрестные ссылки GetLocalPosition(), GetParent(), GetPosition, m_SoundObject и vector::Zero.

Используется в SoundPlayEx().