GetEntDataString Function

Peeks into an entity's object data and retrieves the string at the given offset.

int GetEntDataString(int entity, int offset, char[] buffer, int maxlen)

Parameters

int entity

Edict index.

int offset

Offset to use.

char[] buffer

Destination string buffer.

int maxlen

Maximum length of output string buffer.

Return Value

Number of non-null bytes written.

Errors

Invalid entity or offset out of reasonable bounds.