SetEntDataString

Last Updated2007-04-14
Created At2007-04-14

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

native int SetEntDataString(int entity, int offset, const char[] buffer, int maxlen, bool changeState = false)

Parameters

int entity
Edict index.
int offset
Offset to use.
const char[] buffer
String to set.
int maxlen
Maximum length of bytes to write.
bool changeState
If true, change will be sent over the network.

Return Value

int Number of non-null bytes written.

Error

Invalid entity or offset out of reasonable bounds.