register_think
- Синтаксис
-
native register_think(const Classname[], const function[]);
Переменная | Описание |
---|---|
Touched |
Entity classname to hook |
function |
Name of callback function |
- Описание
- Registers a function to be called on entity think on all entities of a specified class.
- Пометка
-
The function will be called in the following manner: public think_handler(entity) entity - Index of entity thinking
- Пометка
-
The callback should return PLUGIN_CONTINUE to ignore the think, PLUGIN_HANDLED or higher to block it.
- Пометка
-
When returning PLUGIN_HANDLED from the callback, Engine will still fire other think functions like the pfn_think() forward before actually blocking the think. To immediately block return PLUGIN_HANDLED_MAIN instead.
- Возвращает
- Think forward id