Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
precache model2
From Quake Wiki
Revision as of 19:46, 1 August 2023 by Boondorl (talk | contribs) (Created page with "''string'' '''precache_model2'''(''string'' modelPath) == Usage == The same as precache_model. This was only used for models in the registered version of Quake. Using <co...")
string precache_model2(string modelPath)
Contents
Usage[edit]
The same as precache_model. This was only used for models in the registered version of Quake. Using precache_model()
is preferred.
Parameters[edit]
- modelPath
- The path to the model file to set. Can be a model (.mdl), sprite (.spr) or BSP (.bsp).
Return[edit]
The passed model file path. Does nothing.
Example[edit]
// Precache a model in the monster's initialization function void monster_my_monster() { precache_model2("progs/mymonster.mdl"); // ... }