Updated explanation of find_entity saying "will return 0 if nothing is found"

This commit is contained in:
Johnny Bergström 2004-03-08 09:28:30 +00:00
parent da149e4580
commit 0b129c3a9f

View File

@ -92,7 +92,7 @@ native entity_set_byte(iIndex, iKey, iVal);
/* Creates an entity, will return the index of the created entity. ClassName must be valid. */ /* Creates an entity, will return the index of the created entity. ClassName must be valid. */
native create_entity(szClassname[]); native create_entity(szClassname[]);
/* Finds an entity in the world, will return -1 if nothing is found */ /* Finds an entity in the world, will return 0 if nothing is found */
native find_entity(iIndex, szClass[]); native find_entity(iIndex, szClass[]);
native find_ent_by_owner(iIndex, szClass[], iOwner); native find_ent_by_owner(iIndex, szClass[], iOwner);
native find_ent_by_target(iIndex, szClass[]); native find_ent_by_target(iIndex, szClass[]);