๐ฎCUserCmd
Describes a user command.
commandNumber
FieldRead only
Type: int
Current command number.
GetButton
Method
Returns state of the specified button.
Arguments
1. Button
Name
Type
Description
Returns
Type
Description
bool
Is pressed.
Example
SetButton
Method
Sets the specified button into the command.
Arguments
1. Button
Name
Type
Description
Example
RemoveButton
Method
Removes the specified button from the command.
Arguments
1. Button
Name
Type
Description
Example
GetViewangles
Method
Returns the current viewangles of the command.
Arguments
None.
Returns
Type
Description
Viewangles.
Example
SetViewangles
Method
Sets the specified angles into the command.
Arguments
1. Angles
Name
Type
Description
Example
LockAngles
Method
Sets the command viewangles into the games view.
Arguments
None.
Example
GetForwardMove
Method
Returns the forwardmove of the command. (0.0 - 1.0)
Arguments
None.
Returns
Type
Description
float
forwardmove.
Example
GetLeftMove
Method
Returns the leftmove of the command. (0.0 - 1.0)
Arguments
None.
Returns
Type
Description
float
leftmove.
Example
SetForwardMove
Method
Sets the specified forwardmove into the command. (0.0 - 1.0)
Arguments
Type
Description
float
forwardmove.
Example
SetLeftMove
Method
Sets the specified leftmove into the command. (0.0 - 1.0)
Arguments
Type
Description
float
leftmove.
Example
RotateMovement
Method
Rotates the commands movement toward the specified yaw without affecting viewangles.
Arguments
Type
Description
float
yaw.
Example
Last updated