GetEntityNetClass

Last Updated2015-10-30
Created At2007-03-02

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

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

Parameters

int edict
Index of the entity.
char[] clsname
Buffer to store the serverclass name.
int maxlength
Maximum length of the buffer.

Return Value

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

Error

Invalid edict index.