25enum SoundControllerAction
163 #ifdef DIAG_DEVELOPER
165 private void ~AbstractWave() {}
198 proto
void Skip(
float timeSec);
208 GetEvents().Event_OnSoundWaveStarted.Invoke(
this);
213 GetEvents().Event_OnSoundWaveStopped.Invoke(
this);
218 GetEvents().Event_OnSoundWaveLoaded.Invoke(
this);
223 GetEvents().Event_OnSoundWaveHeaderLoaded.Invoke(
this);
228 GetEvents().Event_OnSoundWaveEnded.Invoke(
this);
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
proto native void Load(string noise_name)
ParticleEvents GetEvents()
Get the events.
proto native AbstractSoundScene GetSoundScene()
ScriptInvoker Class provide list of callbacks usage:
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
proto native void SetPosition(vector position)
Set the world position of the Effect.
SetSoundControllerOverride(string controllerName, float value, SoundControllerAction action)
proto void SetVolume(float value)
proto void SetStartOffset(float offset)
proto void SetFadeInFactor(float volume)
proto native void SetSpeed(vector speed)
Note: Sets the speed locally if parented, retrieves globally with the parent speed.
class AbstractWaveEvents InitEvents()
void PlayWithOffset(float offset)
proto native void AddVariable(string name, float value)
proto void AddVariables(notnull array< string > names, array< float > values=null)
proto native void Initialize(SoundParams soundParams)
proto void SetDoppler(bool setDoppler)
proto void SetFrequency(float value)
proto native AbstractWave Play3D(SoundObject soundObject, SoundObjectBuilder soundBuilder)
proto native void AddEnvSoundVariables(vector position)
proto native AbstractWave Play2D(SoundObject soundObject, SoundObjectBuilder soundBuilder)
ref ScriptInvoker Event_OnSoundWaveEnded
proto native float GetVOIPVolume()
void SoundObject(SoundParams soundParams)
proto native float GetAudioLevel()
proto native void SetSoundVolume(float vol, float time)
proto native float GetMusicVolume()
proto native int GetHierarchyPivot()
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
proto native vector GetSpeed()
SoundObject BuildSoundObject()
proto native float GetSoundVolume()
proto void SetFadeOutFactor(float volume)
proto native IEntity GetParent()
proto void Loop(bool setLoop)
ref ScriptInvoker Event_OnSoundWaveHeaderLoaded
proto native void Initialize(SoundParams soundParams)
proto void SetVolumeRelative(float value)
proto float GetCurrPosition()
Current position in percentage of total length.
void SetVariable(string name, float value)
Deprecated - same functionality, just poor naming.
proto native float GetRadioVolume()
proto native float GetSilenceThreshold()
class SoundObject SoundParams(string name)
proto native void SetSpeechExVolume(float vol, float time)
proto native void SetPosition(vector position)
Note: Sets the position locally if parented, retrieves globally with the sound offset.
proto native vector GetPosition()
ref ScriptInvoker Event_OnSoundWaveStopped
proto bool IsHeaderLoaded()
void AbstractSoundScene()
ref ScriptInvoker Event_OnSoundWaveStarted
proto native SoundObject BuildSoundObject(SoundObjectBuilder soundObjectbuilder)
proto native void SetVOIPVolume(float vol, float time)
proto native void SetKind(WaveKind kind)
proto native void SetRadioVolume(float vol, float time)
proto native float GetSpeechExVolume()
proto Managed GetUserData()
proto void UpdateVariables(notnull array< float > values)
proto native void SetMusicVolume(float vol, float time)
ref ScriptInvoker Event_OnSoundWaveLoaded
proto float GetFrequency()
void UpdateEnvSoundControllers(vector position)
Deprecated - same functionality, just poor naming.
proto void Skip(float timeSec)
void Stop()
Stops all elements this effect consists of.
proto native void ResetAllSoundControllers()
proto native void SetOcclusionObstruction(float occlusion, float obstruction)
proto native void MuteAllSoundControllers()
proto native void SetParent(IEntity parent, int pivot=-1)
proto float GetLength()
WARNING: Blocking! Waits for header to load.
void ~AbstractSoundScene()