Talk:Math Script
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