PrecacheDecal Function

Precaches a given decal.

int PrecacheDecal(const char[] decal, bool preload)

Parameters

const char[] decal

Name of the decal to precache.

bool preload

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

Return Value

Returns a decal index.