math_clamp is a point entity available with any version of Mapbase.

Clamps a value between two values. Supports integers, floats, and vectors.



KeyValues

- Max (SetMax) <string>
The maximum value. Can be an integer, a float, or a vector.
- Min (SetMin) <string>
The minimum value. Can be an integer, a float, or a vector.

Inputs

- ClampValue <string>
Clamps the specified value. Can be an integer, a float, or a vector.
- SetMax <string>
Sets the max value. Can be an integer, a float, or a vector.
- SetMin <string>
Sets the max value. Can be an integer, a float, or a vector.

Outputs

- OutValue <string>
Outputs the clamped value.
- OnBeforeMin <string>
Fires when a clamped value was before the minimum value. Outputs the clamped value.
- OnBeyondMax <string>
Fires when a clamped value was beyond the maximum value. Outputs the clamped value.