ent_purge ( ENTITY*);

Releases texture memory and all decals used by the entity. Useful for freeing the video memory when entities of a certain type won't be visible anymore. Note that this works for model or sprite entities only; maps or terrain can't be purged. Video memory is automatically allocated again when the entity is seen the next time - so this instruction won't do any harm. However, any ent_alphaset instructions must be performed again. Thus the ent_purge instruction, followed by ent_alphaset, can also be used to change the alpha factor of an entity texture. In a multiplayer system this instruction only affects the current PC.

Parameters:

ENTITY* - entity pointer.

Speed:

Slow

Example:

ent_purge (player); // purges the player entity when in 1st person mode 		

See also:

ent_create, ent_morph, ent_preload, ptr_remove, ent_alphaset ► latest version online