Talk:Math Script

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

A clamp function.

Int Function clamp(int value, int max)
    if value < max
        return value
    else
        return max
    endif
EndFunction