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

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_next, ent_vertices ► latest version online