Es precachemodel

From EventScripts Community Encyclopedia


Overview

Syntax: es_precachemodel <variable> <model-path-and-name>

Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Variation of this command that doesn't expand variables: {{{x}}}

Description

Precaches a model to memory so it can be immediately loaded when used. Saves the #index number into variable


Parameters

  • variable - Variable you want to store then #index number into.
  • model-path-and-name - Name and path to the model.


Examples

es_xset index 0
es_precachemodel index "models/player/mani/admin_t/t_phoenix.mdl"


Notes

  • If your script is loaded via the autoexec.cfg and your block load contains the line es_precachemodel it will crash your server. Be warned!


See also


External links

es_xprecachemodel


{{{category}}}

blog comments powered by Disqus