Signature
native set_usercmd(type, any:...);
Description
Sets a value in a usercmd struct.
Notes
- 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.
Parameters
- 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]
No return value