25enum SoundControllerAction
88 return g_Game.GetSoundScene().BuildSoundObject(
this);
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
Internal ancestor of all Entity implementations.
ScriptInvoker Class provide list of callbacks usage:
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native void SetPosition(vector position)
Set the world position of the Effect.
SetSoundControllerOverride(string controllerName, float value, SoundControllerAction action)
Overrides or limits soundmap value for a sound cotroller.
proto void SetVolume(float value)
proto native void SetSpeed(vector speed)
Note: Sets the speed locally if parented, retrieves globally with the parent speed.
proto void SetStartOffset(float offset)
proto void SetFadeInFactor(float volume)
void SoundObject(SoundParams soundParams)
class AbstractWaveEvents InitEvents()
void PlayWithOffset(float offset)
proto native IEntity GetParent()
proto native void AddVariable(string name, float value)
proto void AddVariables(notnull array< string > names, array< float > values=null)
proto native AbstractWave Play2D(SoundObject soundObject, SoundObjectBuilder soundBuilder)
ref ScriptInvoker Event_OnSoundWaveEnded
proto native void Initialize(SoundParams soundParams)
proto native void SetPosition(vector position)
Note: Sets the position locally if parented, retrieves globally with the sound offset.
ref ScriptInvoker Event_OnSoundWaveLoaded
proto native float GetAudioLevel()
proto void SetDoppler(bool setDoppler)
proto void SetFrequency(float value)
proto native vector GetPosition()
ref ScriptInvoker Event_OnSoundWaveStopped
proto native void AddEnvSoundVariables(vector position)
proto native void SetParent(IEntity parent, int pivot=-1)
Note: 'SoundObject' is not an Entity, and therefore can not be accessed by using 'IEntity....
proto native void SetKind(WaveKind kind)
proto native float GetSilenceThreshold()
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
SoundObject BuildSoundObject()
proto native void SetSoundVolume(float vol, float time)
proto void SetFadeOutFactor(float volume)
proto native float GetSpeechExVolume()
proto native float GetMusicVolume()
proto native float GetSoundVolume()
proto void Loop(bool setLoop)
proto native float GetVOIPVolume()
proto native void SetSpeechExVolume(float vol, float time)
proto native SoundObject BuildSoundObject(SoundObjectBuilder soundObjectbuilder)
proto void SetVolumeRelative(float value)
void AbstractSoundScene()
proto float GetCurrPosition()
Current position in percentage of total length.
void SetVariable(string name, float value)
Deprecated - same functionality, just poor naming.
proto native vector GetSpeed()
ref ScriptInvoker Event_OnSoundWaveHeaderLoaded
class SoundObject SoundParams(string name)
proto void UpdateVariables(notnull array< float > values)
proto bool IsHeaderLoaded()
proto native AbstractWave Play3D(SoundObject soundObject, SoundObjectBuilder soundBuilder)
proto native int GetHierarchyPivot()
proto Managed GetUserData()
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 float GetFrequency()
void UpdateEnvSoundControllers(vector position)
Deprecated - same functionality, just poor naming.
proto void Skip(float timeSec)
proto native float GetRadioVolume()
void Stop()
Stops all elements this effect consists of.
proto native void ResetAllSoundControllers()
Removes all the previously set overrides of sound controllers.
ref ScriptInvoker Event_OnSoundWaveStarted
proto native void MuteAllSoundControllers()
Overrides all the environment controllers to be muted.
proto float GetLength()
WARNING: Blocking! Waits for header to load.
proto native void Load(string noise_name)
ParticleEvents GetEvents()
Get the events.