ent_for_file (STRING* name);

Returns a pointer to the first level entity with the given file name.

Parameters:

name - the entity file name, char* or STRING*

Returns:

ENTITY* pointer or NULL if not found.

Speed:

Medium.

Example:

you = ent_for_file("terrain.hmp"); // get pointer to a terrain entity
if (you) your.ambient = 50;

See also:

ent_for_name, ent_next, ent_status, str_for_entname

► latest version online