51 return GetGame().GetSoundScene().BuildSoundObject(
this);
171 GetEvents().Event_OnSoundWaveStarted.Invoke(
this);
176 GetEvents().Event_OnSoundWaveStopped.Invoke(
this);
181 GetEvents().Event_OnSoundWaveLoaded.Invoke(
this);
186 GetEvents().Event_OnSoundWaveHeaderLoaded.Invoke(
this);
191 GetEvents().Event_OnSoundWaveEnded.Invoke(
this);
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
void SetParent(Object parent_obj)
Set parent of the Effect.
proto native void SetSpeed(vector speed)
Note: Sets the speed locally if parented, retrieves globally with the parent speed.
proto native AbstractWave Play2D(SoundObject soundObject, SoundObjectBuilder soundBuilder)
ref ScriptInvoker Event_OnSoundWaveEnded
proto native void Initialize(SoundParams soundParams)
ref ScriptInvoker Event_OnSoundWaveLoaded
proto native float GetAudioLevel()
ref ScriptInvoker Event_OnSoundWaveStopped
proto native void SetKind(WaveKind kind)
enum WaveKind AbstractSoundScene()
proto native float GetSilenceThreshold()
SoundObject BuildSoundObject()
proto native void SetSoundVolume(float vol, float time)
proto native float GetSpeechExVolume()
proto native float GetMusicVolume()
proto native float GetSoundVolume()
proto native float GetVOIPVolume()
proto native void SetSpeechExVolume(float vol, float time)
class SoundObjectBuilder SoundObject(SoundParams soundParams)
proto native vector GetSpeed()
ref ScriptInvoker Event_OnSoundWaveHeaderLoaded
proto void UpdateVariables(notnull array< float > values)
proto native AbstractWave Play3D(SoundObject soundObject, SoundObjectBuilder soundBuilder)
proto native int GetHierarchyPivot()
void ~AbstractSoundScene()
proto native void SetMusicVolume(float vol, float time)
proto native void SetVOIPVolume(float vol, float time)
proto native void SetRadioVolume(float vol, float time)
proto native void SetOcclusionObstruction(float occlusion, float obstruction)
proto native float GetRadioVolume()
class SoundParams Event_OnSoundWaveStarted
class JsonUndergroundAreaTriggerData GetPosition
proto bool IsHeaderLoaded()
proto Managed GetUserData()
proto void SetPosition(vector position, vector velocity="0 0 0")
proto void SetFrequency(float value)
proto void SetUserData(Managed inst)
proto void SetVolume(float value)
void PlayWithOffset(float offset)
proto float GetLength()
WARNING: Blocking! Waits for header to load.
proto void Loop(bool setLoop)
AbstractWaveEvents GetEvents()
proto void Skip(float timeSec)
proto float GetCurrPosition()
Current position in percentage of total length.
proto void SetStartOffset(float offset)
proto float GetFrequency()
proto void SetFadeOutFactor(float volume)
proto void SetVolumeRelative(float value)
proto void SetFadeInFactor(float volume)
proto void SetDoppler(bool setDoppler)
ScriptInvoker Class provide list of callbacks usage:
void UpdateEnvSoundControllers(vector position)
Deprecated - same functionality, just poor naming.
proto native void Initialize(SoundParams soundParams)
proto native void AddEnvSoundVariables(vector position)
void SoundObjectBuilder(SoundParams soundParams)
proto native void AddVariable(string name, float value)
proto void AddVariables(notnull array< string > names, array< float > values=null)
SoundObject BuildSoundObject()
void SetVariable(string name, float value)
Deprecated - same functionality, just poor naming.
void SoundParams(string name)
proto native bool IsValid()
proto native bool Load(string name)
proto native CGame GetGame()
proto native void SetPosition(vector position)
Set the world position of the Effect.