This wiki is a copy of the original Skyrim CK wiki created and maintained by the UESP.net. See CreationKit:Copy Notice for more info.

Max - Math

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: Math Script

Returns the larger of the two values passed in.

Syntax[edit | edit source]

float Function Max(float afValue1, float afValue2) global

Parameters[edit | edit source]

  • afValue1: The first value.
  • afValue2: The second value.

Return Value[edit | edit source]

The larger of the two values

Examples[edit | edit source]

int a = Max(10, 15) ; a == 15
int b = Max(-1.5, -3) ; b == -1.5

See Also[edit | edit source]