create_entity
- Синтаксис
-
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