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:
-
Only the first 20 characters of the entity name are evaluated.
- When an entity is static - that means when it has no action attached
- it's parameters and skills can be read, but must not be changed
during gameplay.
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