MaxFloat (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 higher one.

Usage

float maxFloat( float val1 , float val2 )

Parameters

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

Examples

sys.maxFloat( my_float, 10 );

Notes

Returns the higher value of the two.