PrecacheGeneric Function

Precaches a given generic file.

int PrecacheGeneric(const char[] generic, bool preload)

Parameters

const char[] generic

Name of the generic file to precache.

bool preload

If preload is true the file will be precached before level startup.

Return Value

Returns a generic file index.