Clamp

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin.

Description

Clamps the value to a specified range.

Syntax

[help]
(float) Clamp value:float min:float max:float

Example

set fVal to Clamp 5 10 20 // sets fVal to 10