audio::snd_play_auto_fx()
audio helper: sound play auto FX. BO3's decompiled scripts carry no docs for this one: the description is ours, from its name and use.
Signature
audio::snd_play_auto_fx(fxid, alias, offsetx, offsety, offsetz, onground, area, threshold, alias_override)
Needs #using the script that defines it (scripts/shared/audio_shared.csc).
Parameters
| Name |
|---|
| fxid |
| alias |
| offsetx |
| offsety |
| offsetz |
| onground |
| area |
| threshold |
| alias_override |
The decompiled scripts don't keep default values, so some of these may be optional: check the real uses below.
Real uses in BO3's scripts
Called 20 times in the decompiled scripts. A few, zombies first:
- scripts/zm/zm_cosmodrome_amb.csc, line 42
audio::snd_play_auto_fx("fx_fire_line_xsm", "amb_fire_medium"); - scripts/zm/zm_cosmodrome_amb.csc, line 43
audio::snd_play_auto_fx("fx_fire_line_sm", "amb_fire_large"); - scripts/zm/zm_moon_amb.csc, line 148
audio::snd_play_auto_fx("fx_moon_floodlight_wide", "amb_lights"); - scripts/zm/zm_temple_amb.csc, line 193
audio::snd_play_auto_fx("fx_ztem_torch", "amb_fire_medium"); - scripts/zm/zm_tomb_amb.csc, line 486
audio::snd_play_auto_fx("fx_tomb_fire_sm", "amb_fire_sm", 0, 0, 0, 0);
More in audio::
- audio::playloopat()Plays loop at.
- audio::stoploopat()Stops loop at.
- audio::scale_speed()audio helper: scale speed.
- audio::snd_set_snapshot()audio helper: sound set snapshot.
- audio::unlockfrontendmusic()audio helper: unlock frontend music.
New to GSC?
Start with the basics, or paste a compile error to get the fix.
Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).