Plays sound.
- Аргументы
-
| params | SoundParams Sound Parameters for the sound |
- Возвращает
bool Whether the sound will start playing
См. определение в файле EffectSound.c строка 152
153 {
154 super.Start();
155
157 {
159
161 {
163 {
168 }
169
171 {
175 return false;
176
177
180 else
182
183 return true;
184 }
185 else
186 {
188 }
189 }
190 }
191
192 return false;
193 }
Object m_ParentObject
Cached parent.
int m_PivotIndex
Cached parent pivot id.
bool SoundLoadEx(out SoundParams params)
Loads in the sound when it is requested for playing through 'SoundPlayEx'.
override void SetCurrentLocalPosition(vector pos, bool updateCached=true)
Set the current local position of the managed sound.
override vector GetCurrentLocalPosition()
Get the current local position of the managed sound.
ref SoundParams m_SoundParams
void SoundError(string err_msg)
Helper for throwing sound errors.
AbstractWave m_SoundWaveObject
void ValidateSoundWave()
Gets called to fill in the necessary data when the header has finished loading.
ref SoundObjectBuilder m_SoundObjectBuilder
ref SoundObject m_SoundObject
vector GetPosition()
Get the world position of the Effect.
Перекрестные ссылки g_Game, GetCurrentLocalPosition(), GetPosition(), m_ParentObject, m_PivotIndex, m_SetEnvVariables, m_SoundObject, m_SoundObjectBuilder, m_SoundParams, m_SoundSetName, m_SoundWaveKind, m_SoundWaveObject, SetCurrentLocalPosition(), SoundError(), SoundLoadEx(), SoundParams() и ValidateSoundWave().
Используется в SEffectManager::PlaySoundCachedParams(), SEffectManager::PlaySoundParams() и SoundPlay().