native get_pdata_ehandle(_index, _offset, _linuxdiff = 20, _macdiff = 20);


Entity index.
Offset to search.
Linux difference.
Mac OS X difference.


Tries to retrieve an edict (entity encapsulation) pointer from an entity's private data.

This function is byte-addressable.  Unlike get_pdata_int() which searches in byte increments of 4,
get_pdata_ehandle searches in increments of 1.

_linuxdiff value is what to add to the _offset for linux servers.
_macdiff value is what to add to the _offset for os x servers.

A log error is thrown on invalid _index and _offset.


-2 if an invalid entity was found.
-1 if an empty entity was found.
0 if serialnumber is not matching.
Otherwise, an entity index is returned.