MinFloat (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 lower one.

Usage

In your script type...

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.


Personal tools
Main