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.

Връщаща стойност

Тази функция няма връщаща стойност.