MinFloat (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

Compares two numbers and returns the lower one.

Usage

float minFloat( float val1 , float val2 )

Parameters

  • [val1] - First value.
  • [val2] - Second value.

Examples

sys.minFloat( my_float, 10 );

Notes

Returns the lower value of the two.