File size: 456 Bytes
ea562e8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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" );