25enum SoundControllerAction
62 proto native
float GetRadioVolume();
63 proto native
void SetRadioVolume(
float vol,
float time);
65 proto native
float GetSpeechExVolume();
66 proto native
void SetSpeechExVolume(
float vol,
float time);
68 proto native
float GetMusicVolume();
69 proto native
void SetMusicVolume(
float vol,
float time);
71 proto native
float GetSoundVolume();
72 proto native
void SetSoundVolume(
float vol,
float time);
74 proto native
float GetVOIPVolume();
75 proto native
void SetVOIPVolume(
float vol,
float time);
77 proto native
float GetSilenceThreshold();
78 proto native
float GetAudioLevel();
88 return GetGame().GetSoundScene().BuildSoundObject(
this);
115 proto
void UpdateVariables(notnull
array<float> values);
119 proto native
void SetParent(
IEntity parent,
int pivot = -1);
120 proto native
IEntity GetParent();
121 proto native
int GetHierarchyPivot();
124 proto native
void SetPosition(
vector position);
125 proto native
vector GetPosition();
128 proto native
void SetSpeed(
vector speed);
129 proto native
vector GetSpeed();
131 proto native
void SetOcclusionObstruction(
float occlusion,
float obstruction);
132 proto native
void SetKind(
WaveKind kind);
133 proto native
void Initialize(
SoundParams soundParams);
143 proto
string GetName();
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
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)
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 void AddEnvSoundVariables(vector position)
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
SoundObject BuildSoundObject()
proto void SetFadeOutFactor(float volume)
proto void Loop(bool setLoop)
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.
class SoundObject SoundParams(string name)
proto bool IsHeaderLoaded()
proto Managed GetUserData()
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 MuteAllSoundControllers()
proto float GetLength()
WARNING: Blocking! Waits for header to load.
proto native void Load(string noise_name)
ParticleEvents GetEvents()
Get the events.