native create_entity(const szClassname[]);
szClassname | Entity classname |
Creates an entity.
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.
Entity index > 0 on success, 0 otherwise
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.