DayZ 1.27
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 строка 743

744 {
745 Object parent = GetParent();
746
747 if (m_SoundObject)
748 {
749 //TODO(kumarjac): Create and expose 'SoundObject.GetLocalPosition'
750 if (parent)
751 return parent.WorldToModel(m_SoundObject.GetPosition());
752 else
753 return m_SoundObject.GetPosition();
754 }
755 else
756 {
757 if (parent)
758 return GetLocalPosition();
759 else
760 return GetPosition();
761 }
762
763 return vector.Zero;
764 }
vector GetLocalPosition()
Get the local position of the Effect.
Определения Effect.c:488
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().