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

A logic entity that attempts to replicate light patterns that can be used on named lights.

WARNING: This is currently out of sync with default light patterns. TODO: Fix that!



KeyValues

- Appearance (style) <choices>
Which preset pattern to use.
- Custom Appearance (pattern) <string>
A custom pattern to use. a = fully dark, z = fully bright. This should always contain lowercase letters for light patterns. Uppercase letters or other types of characters won't work with actual light patterns. (although they shouldn't break the whole entity either)
- Pattern Speed (PatternSpeed) <float>
The speed of the pattern.

Inputs

- SetStyle <integer>
Sets the pattern from the style presets.
- SetPattern <string>
Sets the pattern directly.
- Toggle <void>
Toggles this entity.

Outputs

- OutValue <float>
Outputs with a brightness equivalent to the current letter.
- OutLetter <string>
Outputs with the current letter itself.
- OnLightOn <void>
Fires when the current letter is equivalnt to 'on' (greater than a).
- OnLightOff <void>
Fires when the current letter is equivalent to 'off' (equal to a).