ClampFloat (script event)
The information on this
page is specific to Quake 4 .
Game class
This event operates on an instance of the game class type {{{gameclass}}}
Description
Returns the clamped result of a number.
Usage
float clampFloat( float min , float max , float val )
Parameters
- [min] - The lower clamp factor.
- [max] - The upper clamp factor.
- [val] - The number to clamp.
Examples
sys.clampFloat( 1, 10, my_float);
Notes
Not available.