<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fortress-forever.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Lua%3APrecacheModel</id>
	<title>Lua:PrecacheModel - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.fortress-forever.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Lua%3APrecacheModel"/>
	<link rel="alternate" type="text/html" href="https://www.fortress-forever.com/wiki/index.php?title=Lua:PrecacheModel&amp;action=history"/>
	<updated>2026-08-08T12:42:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.11</generator>
	<entry>
		<id>https://www.fortress-forever.com/wiki/index.php?title=Lua:PrecacheModel&amp;diff=9079&amp;oldid=prev</id>
		<title>Crazycarl: New page: ==PrecacheModel(string)== All sounds and models use in Source must be &#039;&#039;precached&#039;&#039;, or loaded into memory when the map loads. The engine will automatically precache assets that are found ...</title>
		<link rel="alternate" type="text/html" href="https://www.fortress-forever.com/wiki/index.php?title=Lua:PrecacheModel&amp;diff=9079&amp;oldid=prev"/>
		<updated>2009-05-13T04:17:33Z</updated>

		<summary type="html">&lt;p&gt;New page: ==PrecacheModel(string)== All sounds and models use in Source must be &amp;#039;&amp;#039;precached&amp;#039;&amp;#039;, or loaded into memory when the map loads. The engine will automatically precache assets that are found ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==PrecacheModel(string)==&lt;br /&gt;
All sounds and models use in Source must be &amp;#039;&amp;#039;precached&amp;#039;&amp;#039;, or loaded into memory when the map loads. The engine will automatically precache assets that are found in Hammer, but it doesn&amp;#039;t know about those referenced in lua. Trying to use sounds or models that were not precached will result in an error.&lt;br /&gt;
&lt;br /&gt;
See [[Lua:Precache]] and [[info_ff_script:precache]].&lt;br /&gt;
 &lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function genericbackpack:precache( )&lt;br /&gt;
	-- precache sounds&lt;br /&gt;
	PrecacheSound(&amp;quot;Item.Materialize&amp;quot;)&lt;br /&gt;
	PrecacheSound(&amp;quot;HealthKit.Touch&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	-- precache models&lt;br /&gt;
	PrecacheModel(&amp;quot;models/items/healthkit.mdl&amp;quot;)&lt;br /&gt;
end&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Lua_Commands]]&lt;br /&gt;
[[Category:Utility_functions]]&lt;/div&gt;</summary>
		<author><name>Crazycarl</name></author>
	</entry>
</feed>