Lua:PrecacheModel
From Fortress Forever Wiki
Jump to navigationJump to searchPrecacheModel(string)
All sounds and models use in Source must be precached, or loaded into memory when the map loads. The engine will automatically precache assets that are found in Hammer, but it doesn't know about those referenced in lua. Trying to use sounds or models that were not precached will result in an error.
See Lua:Precache and info_ff_script:precache.
Example
function genericbackpack:precache( ) -- precache sounds PrecacheSound("Item.Materialize") PrecacheSound("HealthKit.Touch") -- precache models PrecacheModel("models/items/healthkit.mdl") end