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

Difference between revisions of "precache sound"

From Quake Wiki

(Created page with "====Syntax:==== <code>string precache_sound(string s)</code> Precaches a sound for use by the engine. Any sound that you want to play MUST be precached. Precaching can only...")
 
(Syntax:)
Line 2: Line 2:
 
<code>string precache_sound(string s)</code>
 
<code>string precache_sound(string s)</code>
  
Precaches a sound for use by the engine.  Any sound that you want to play MUST be precached.  Precaching can only be done during map load, not afterwards.  Doing so will cause the engine to crash.
+
Precaches a sound for use by the engine.  Any sound that you want to play MUST be precached.  Precaching can only be done during map load, not afterwards.  Doing so will cause the engine to crash. Use [[precache_sound2]] for registered Quake.
 +
 
 
====Parameters:====
 
====Parameters:====
 
:<code>s</code> - The path to the sound being precached
 
:<code>s</code> - The path to the sound being precached

Revision as of 17:39, 2 May 2015

Syntax:

string precache_sound(string s)

Precaches a sound for use by the engine. Any sound that you want to play MUST be precached. Precaching can only be done during map load, not afterwards. Doing so will cause the engine to crash. Use precache_sound2 for registered Quake.

Parameters:

s - The path to the sound being precached

Returns:

Returns a string (what string?). This is usually ignored.