Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

precache sound2

From Quake Wiki

Revision as of 19:48, 1 August 2023 by Boondorl (talk | contribs) (Created page with "''string'' '''precache_sound2'''(''string'' soundPath) == Usage == The same as precache_sound. This was only used for sounds in the registered version of Quake. Using <co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

string precache_sound2(string soundPath)

Usage[edit]

The same as precache_sound. This was only used for sounds in the registered version of Quake. Using precache_sound() is preferred.

Parameters[edit]

  • soundPath
The path of the sound file. Supports WAV (.wav) files.

Return[edit]

The passed sound file path. Does nothing.

Example[edit]

// Precache a sound in the monster's initialization function for use later
void monster_my_monster()
{
    precache_sound2("mymonster/missile.wav");

    // ...
}