GM:InputMouseApply

From Garry's Mod
Jump to: navigation, search
 GM:InputMouseApply( )

Contents

Description

Allows you to modify the supplied User Command with mouse input. This could be used to make moving the mouse do funky things to view angles.

Arguments

CUserCmd cmd

User command

Arguments

number x

The amount of mouse movement across the X axis this frame

Arguments

number y

The amount of mouse movement across the Y axis this frame

Arguments

Angle ang

The current view angle

Returns

boolean

Return true if we modified something
Personal tools
Navigation