> > > >

cs_find_ent_by_owner | cstrike | AMX X Documentation

Includes

    1. Stocks
    1. Natives
    2. Forwards
    1. Natives
    2. Stocks
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    2. Forwards
    1. Natives
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    2. Forwards
    1. Natives
    1. Natives
    2. Forwards
    1. Natives
    2. Forwards
    1. Stocks
    1. Natives
    1. Natives
    2. Stocks
    1. Stocks
    1. Stocks
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    1. Stocks
    1. Natives
    1. Natives
    1. Natives
    2. Forwards
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    2. Forwards
    1. Natives
    2. Stocks
    1. Natives
    1. Natives
    1. Natives
    2. Stocks
    1. Natives
    1. Stocks
    1. Natives
    1. Natives
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Stocks
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    1. Natives
    2. Forwards
    3. Stocks
    1. Natives
    1. Natives
    2. Stocks
    1. Stocks

cs_find_ent_by_owner

Syntax
									native cs_find_ent_by_owner(start_index, const classname[], owner);
								
Variable Description
start_index
Entity index to start searching from. -1 to start from
the first entity
classname
Classname to search for
owner
Entity index to search for entity's owner

Description
Finds an entity in the world using Counter-Strike's custom FindEntityByString wrapper, matching by owner.

Note
Unlike other mods CS keeps track of entities using a custom hashtable.
This function utilizes the hasthable and allows for considerably faster
classname lookup compared to the default FindEntityByString (used by
find_ent_by_owner() for example).

Note
This exclusively considers entities in the hashtable, created by the
game itself, using cs_create_entity(), or added via cs_set_ent_class().

Return
Entity index > 0 if found, 0 otherwise
> > > >