during spawning it caches the model, after that it simply returns the index which refers to that model
Sets the entitie's model to model_filename
Used to pre-cache the icon during initialization, and reference it thereafter.