set_usercmd
native set_usercmd(type, any:...);
| Parameter |
Description |
| 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.
This function has no return value.