A brain for use with the BrainManager that causes its Entity’s to flash different colors/alpha values.
The coloring temporarily overrides the Entity’s base color without really changing it. To permenently change it, use ColorFade or Entity::SetBaseColor. Parameters it understands:
pulse_rate | How fast each flash lasts. |
remove_brain_by_pulses | If set, after this number of pulses occur, the brain will be removed automatically. |
r | The pulse red color, 0 to 255. |
g | The pulse green color, 0 to 255. |
b | The pulse blue color, 0 to 255. |
a | The pulse alpha color, 0 to 255. |
//flash red for 10 pulses
this:GetBrainManager():Add("ColorFlash", "pulse_rate=50;g=-200;b=-200;remove_brain_by_pulses=10");