Amxxprogramer / EngFunc_ModelIndex.txt
RichieBurundi's picture
Upload 29 files
ea562e8 verified
raw
history blame
456 Bytes
Fakemeta function :
Quote:
EngFunc_ModelIndex
Description :
Returns an unique index of the model name provided.
It's actually the same number that precache_model() returns.
A model index is used for example in some TE_* messages. ( TE_LIGHTNING, TE_GLOWSPRITE, etc.. See message_const.inc file ).
The model index of an entity is stored in pev_modelindex.
Usage :
Code:
ModelIndex = engfunc( EngFunc_ModelIndex, "models/MyModel.mdl" );