🍎Inputs

Defines the inputs bitmasks in the game

-- Mouse button or key is pressed down
IN_ATTACK

-- Jump is being held down
IN_JUMP

-- Player is holding the duck key
IN_DUCK

-- Player is moving forward
IN_FORWARD

-- Player is moving backward
IN_BACK

-- Player is using an object (i.e. opening a door)
IN_USE

-- Player stopped using an object
IN_CANCEL

-- Player is moving to the left
IN_LEFT

-- Player is moving to the right
IN_RIGHT

-- Player is strafing to the left
IN_MOVELEFT

-- Player is strafing to the right
IN_MOVERIGHT

-- Secondary attack button is being held down
IN_ATTACK2

-- Player is running
IN_RUN

-- Player is reloading
IN_RELOAD

-- Alternate fire button is being held down
IN_ALT1

-- Scoreboard is being held down
IN_SCORE

-- Example usage:
LocalPlayer.CheckButton(cmd, IN_ATTACK)

Last updated