MaxFloat (script event)

From modwiki

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

Description

Compares two numbers and returns the higher one.

Usage

In your script type...

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.


Personal tools
Main