set_usercmd
- Синтаксис
-
native set_usercmd(type, any:...);
Переменная | Описание |
---|---|
type |
Entry to write to |
... |
Depending on the entry type a different additional parameter should be provided: int - Second parameter should be an integer variable float - Second parameter should be a float variable vector - Second parameter should be a Float:array[3] |
- Описание
- Sets a value in a usercmd struct.
- Пометка
-
This native can only be used inside the client_cmdStart() forward.
- Пометка
-
For a list of valid usercmd entries see the usercmd_* constants in engine_const.inc
- Пометка
-
Changes will be immediately reflected in get_usercmd() for all plugins.
- Возвращает
- Функция ничего не возвращает