Models and Textures

gi.modelindex(model_filename)

during spawning it caches the model, after that it simply returns the index which refers to that model

gi.setmodel(entity, model_filename)

Sets the entitie's model to model_filename

gi.imageindex(image_filename)

Used to pre-cache the icon during initialization, and reference it thereafter.