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

A lightweight entity that performs simple calculations on the fly without needing a complicated I/O chain. This is useful for values that are outputted on a per-frame basis and might not work with a math_counter chain.



KeyValues

- Mod Value (startvalue) <string>
The value that is applied to input values.
- Operator (SetOperator) <choices>
What calculation to perform with the mod value. (input value _ mod value)

Inputs

- SetMod <string>
Sets the mod value.
- ModInt <integer>
Applies modification to the specified integer.
- ModFloat <float>
Applies modification to the specified float.
- ModVector <vector>
Applies modification to the specified vector.
- SetOperator <string>
Sets the operator. Use +, -, *, or / to choose addition, subtraction, multiplication, or division respectively.

Outputs

- OutInt <integer>
Outputs the modified integer.
- OutFloat <float>
Outputs the modified float.
- OutVector <vector>
Outputs the modified vector.