math_generate
math_generate is a point entity available
with any version of Mapbase.Continuously generates numbers using various generation modes based on material proxies.
KeyValues
- Start Disabled (StartDisabled) <choices>
None
None
- Generation Type (GenerateType) <choices>
None
None
- Initial Value (InitialValue) <float>
Starting value for the math_generate.
Starting value for the math_generate.
- Minimum Legal Value (SetHitMin) <float>
Minimum legal value for generation.
Minimum legal value for generation.
- Maximum Legal Value (SetHitMax) <float>
Maximum legal value for generation.
Maximum legal value for generation.
- Parameter 1 (SetParam1) <float>
Multi-purpose parameter #1 for the generation algorithms to use for their own needs.
Multi-purpose parameter #1 for the generation algorithms to use for their own needs.
- Parameter 2 (SetParam2) <float>
Multi-purpose parameter #2 for the generation algorithms to use for their own needs.
Multi-purpose parameter #2 for the generation algorithms to use for their own needs.
Inputs
- SetValue
<float>
Sets the math_generate to a new value and fires the OutValue output with the result, performing all generation from that value.
Sets the math_generate to a new value and fires the OutValue output with the result, performing all generation from that value.
- SetValueNoFire
<float>
Sets the math_generate to a new value without firing any outputs.
Sets the math_generate to a new value without firing any outputs.
- GetValue
<void>
Causes the math_generate to fire its OnGetValue output with the current value. Used for polling the value when you don't want constant updates from the OutValue output.
Causes the math_generate to fire its OnGetValue output with the current value. Used for polling the value when you don't want constant updates from the OutValue output.
- SetGenerateType
<integer>
Sets the type of generation this math_generate should perform.
Sets the type of generation this math_generate should perform.
- Enable
<void>
Enables this entity.
Enables this entity.
- Disable
<void>
Disables this entity.
Disables this entity.
- Toggle
<void>
Toggles whether this entity is disabled.
Toggles whether this entity is disabled.
Outputs
- OutValue
<string>
Fires each tick while generation is active, passing the value continuously generated by the math_generate.
Fires each tick while generation is active, passing the value continuously generated by the math_generate.
- OnHitMin
<void>
Fired when generation meets the min value. Generation must go back above the min value before the output will fire again.
Fired when generation meets the min value. Generation must go back above the min value before the output will fire again.
- OnHitMax
<void>
Fired when generation meets the max value. Generation must go below the max value before the output will fire again.
Fired when generation meets the max value. Generation must go below the max value before the output will fire again.
- OnGetValue
<float>
Fired in response to the GetValue input. Used for polling the value when you don't want constant updates from the OutValue output.
Fired in response to the GetValue input. Used for polling the value when you don't want constant updates from the OutValue output.
- OnChangedFromMin
<void>
Fired when the current generation value changes from the minimum value.
Fired when the current generation value changes from the minimum value.
- OnChangedFromMax
<void>
Fired when the current generation value changes from the maximum value.
Fired when the current generation value changes from the maximum value.
