S&box Wiki

Rotation.Clamp

Syntax

Rotation Clamp( Rotation to, float degrees, float change )

Description

Clamp to within degrees of passed rotation. Also pases out the change in degrees, if any.

Arguments

float degrees
float change

Returns