Garry's Mod Wiki

Revision Difference

util.PrecacheSound#528212

<function name="PrecacheSound" parent="util" type="libraryfunc"> <description> Precaches a sound for later use. Sound is cached after being loaded once. <note>Soundcache is limited to 16384 unique sounds.</note> ⤶ <bug>Positively broken on purpose because it fills stringtables</bug>⤶ <bug>Ultimately does nothing on client, and only works with sound scripts, not direct paths</bug>⤶ <note>Soundcache is limited to 16384 unique sounds on the server.</note> ⤶ <bug>Broken on purpose because hitting the limit above causes the server to shutdown</bug>⤶ <bug>Ultimately does nothing on client, and only works with sound scripts, not direct paths. This will be fixed in the next update.</bug>⤶ </description> <realm>Shared</realm> <args> <arg name="soundName" type="string">The sound to precache.</arg> </args> </function>