native get_usercmd(type, any:...);
type | Entry to retrieve from |
... | Depending on the entry type a different number of additional parameters should be provided: int - Returns the entry integer value directly, no additional parameters required float - Stores the entry float value into the variable provided as the second parameter vector - Copies the entry vector to the Float:array[3] provided in the second parameter |
Retrieves a value from a usercmd struct.
This native can only be used inside the client_cmdStart() forward. If it is used outside this forward it will not retrieve any results and always return 0.
For a list of valid usercmd entries see the usercmd_* constants in engine_const.inc
Changes depending on the entry type: int - Returns the entry integer value float - Returns 1 vector - Returns 1
This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.