Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

Max function

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 19:10, 2 July 2010 by Eliot (Talk | contribs) (Created page with '<noinclude>Max is math function provided by the {{classgames|Object}} class.</noinclude> {{code|native(250) static final function int '''Max''' (int '''A''', [[…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Max is math function provided by the Object(RTNP, U1, UT, U2, U2XMP, UE2Runtime, UT2003, UT2004, UDK, UT3) class.

native(250) static final function int Max (int A, int B)

Returns the larger of the two values. Note that when passing float parameters to this function, they are automatically typecasted to type int. If you don't want this, use the FMax() function instead.han B, but smaller than A, the value of A is returned even though V is actually between the two values.