math_mod
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.
The value that is applied to input values.
- Operator (SetOperator) <choices>
What calculation to perform with the mod value. (input value _ mod value)
What calculation to perform with the mod value. (input value _ mod value)
Inputs
- SetMod
<string>
Sets the mod value.
Sets the mod value.
- ModInt
<integer>
Applies modification to the specified integer.
Applies modification to the specified integer.
- ModFloat
<float>
Applies modification to the specified float.
Applies modification to the specified float.
- ModVector
<vector>
Applies modification to the specified vector.
Applies modification to the specified vector.
- SetOperator
<string>
Sets the operator. Use +, -, *, or / to choose addition, subtraction, multiplication, or division respectively.
Sets the operator. Use +, -, *, or / to choose addition, subtraction, multiplication, or division respectively.
Outputs
- OutInt
<integer>
Outputs the modified integer.
Outputs the modified integer.
- OutFloat
<float>
Outputs the modified float.
Outputs the modified float.
- OutVector
<vector>
Outputs the modified vector.
Outputs the modified vector.
