Releases texture memory, meshes and decals used by the entity. Useful for freeing the video memory when entities of a certain type won't be visible anymore. Video memory is automatically allocated again when the entity is seen the next time - so this function won't do any harm. However, any functions affecting the entity mesh or texture - such as bmap_to_alpha - must be performed again. Thus ent_purge followed by bmap_to_alpha can also be used to change the alpha factor of an entity texture. In a multiplayer system this instruction only affects the current PC.


ENTITY* - entity pointer.




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

See also:

ent_create, ent_morph, ent_preload, ptr_remove

► latest version online