ColorFlash

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_rateHow fast each flash lasts.
remove_brain_by_pulsesIf set, after this number of pulses occur, the brain will be removed automatically.
rThe pulse red color, 0 to 255.
gThe pulse green color, 0 to 255.
bThe pulse blue color, 0 to 255.
aThe pulse alpha color, 0 to 255.

Usage

//flash red for 10 pulses
this:GetBrainManager():Add("ColorFlash", "pulse_rate=50;g=-200;b=-200;remove_brain_by_pulses=10");
All Entity objects can use their BrainManager to add brains to control behavior and functions.
The Entity object.
A brain for use with the BrainManager that causes its Entity’s base color values to change over time.