GetEntityNetClass Function

Retrieves an entity's networkable serverclass name. This is not the same as the classname and is used for networkable state changes.

bool GetEntityNetClass(int edict, char[] clsname, int maxlength)


int edict

Index of the entity.

char[] clsname

Buffer to store the serverclass name.

int maxlength

Maximum length of the buffer.

Return Value

True on success, false if the edict is not networkable.


Invalid edict index.