Clamp
From GECK
A function added by the JohnnyGuitar NVSE Plugin.
Description
Clamps the value to a specified range.
Syntax
(float) Clamp value:float min:float max:float
Example
set fVal to Clamp 5 10 20 // sets fVal to 10 set fVal to Clamp 75 100 50 // sets fVal to 100 set fVal to Clamp 1000 500 50 // sets fVal to 50