Signature
native cs_set_ent_class(index, const classname[]);
Description
Sets a custom classname of an entity.
Notes
-
Unlike other mods CS keeps track of entities using a custom hashtable.
This function adds or updates the classname in the hasthable as well.
This is useful for use with cs_find_ent_by_class() and cs_find_ent_by_owner().
Parameters
- index — Entity index
- classname — Classname to update for
No return value