native

precache_generic

Syntax

native precache_generic(const szFile[]);

Description

Precaches a generic file.

Parameters

szFile Path to the file

Note

Can only be used inside of the plugin_precache() forward.

Note

Precaching sounds with this will not add them to the engine sound table.

Return

Unique cache id of the file

Error

If called outside of the plugin_precache() forward, an error
is thrown.