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

Description

Wiki Description

Returns the smaller of the two values passed in.

Documentation Comment

return the min of the two numbers


Caveats


Parameters

floatafValue1

CK Wiki Description

The first value.

floatafValue2

CK Wiki Description

The second value.


Examples

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

Auto-Generated Example

float myFloat__afValue1
float myFloat__afValue2

float returnedValue = Math.Min(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.