ClampFloat (script event)

From modwiki

Jump to: navigation, search
Image:Q4square_bg.png The information on this page is specific to Quake 4.

Description

Returns the clamped result of a number.

Usage

In your script type...

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.


Personal tools
Main