ent_reload(ENTITY*);
Reloads the entity from hard disk. Can be used for reloading an externally modified model, sprite, or terrain.
Parameters:
ENTITY* - entity pointer.
Speed:
Slow
Remarks:
- The function increases the nexus memory allocated,
depending on the number of vertices and frames of the model.
- The function affects all entities that use the same file, unless they were cloned by ent_clone before.
Example:
function main()
{
level_load(NULL);
vec_set(camera.x,vector(-250,0,50));
you = ent_create("warlock.mdl",NULL,NULL);
while (!key_a) wait(1);
ent_reload(you); // reload the entity after pressing the [A] key
};
See also:
ENTITIES, ent_morph, ent_clone, ent_create, ent_preload
► latest
version online