native

cs_set_ent_class

Syntax

native cs_set_ent_class(index, const classname[]);

Description

Sets a custom classname of an entity.

Parameters

index Entity index
classname Classname to update for

Note

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().

Return

This function has no return value.