Signature
native create_entity(const szClassname[]);
Description
Creates an entity.
Notes
-
When creating an entity the classname has to be valid in the mod, as
the engine needs to link the entity to an existing class internally.
The classname string that is stored in the entvar struct
(EV_SZ_classname) is separate from this association and can later be
freely changed to serve other purposes.
Parameters
- szClassname — Entity classname
Returns
Entity index > 0 on success, 0 otherwise