entity_get_edict2

Синтаксис

native entity_get_edict2(iIndex, iKey);

Употреба

iIndex
Entity index
iKey
Entry to retrieve from

Описание

Returns an edict type value from an entities entvar struct.

Забележка

For a list of valid edict type entries, see the EV_ENT_* constants in
engine_const.inc

Забележка

This native returns -1 as a safe error value if the edict retrieved
from the entvar is an invalid entity. Otherwise it is identical to
entity_get_edict().

Връщаща стойност

Entity index in specified entry, -1 if the edict in the
entvar is not a valid entity or an invalid entry was
specified

Грешка

If an invalid entity index is provided, an error will be
thrown.