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:

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