ent_for_name (STRING* name);

Returns a pointer to the entity with the given WED name. Names can be assigned to entities through [Properties] in WED. This way, entities placed in a level can be accessed in functions even if they have no action themselves.

Parameters:

name - the entity name in WED, char* or STRING*

Returns:

ENTITY* pointer or NULL if not found.

Remarks:

Speed:

Medium.

Example:

you = ent_for_name ("waffe1_mdl_012"); // get pointer to that entity

See also:

ent_for_file, ent_next, ent_status, str_for_entname

► latest version online