Background for Fallout 4
Member of the Math script
floatfunctionMax(floatafValue1, floatafValue2)Global

Description

Wiki Description

Returns the larger of the two values passed in.

Documentation Comment

return the max of the two numbers


Caveats


Parameters

floatafValue1

CK Wiki Description

The first value.

floatafValue2

CK Wiki Description

The second value.


Examples

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

Auto-Generated Example

float myFloat__afValue1
float myFloat__afValue2

float returnedValue = Math.Max(myFloat__afValue1, myFloat__afValue2)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.