Bob

A brain for use with the BrainManager that causes its Entity’s visuals to “bob” up and down, without really moving the Entity.

Parameters it understands

distanceThe total offset of the bobbing movement.
speedHow fast the bobbing is.
visual_interval_msHow jerky/smooth the bobbing movement is.

Usage

this:GetBrainManager():Add("Bob","distance=5;speed=2;visual_interval_ms=10");

//if later, we wanted to change functionality as it's running, we could do...
this:GetBrainManager():SendToBrainByName("Bob", "speed=2.5");
All Entity objects can use their BrainManager to add brains to control behavior and functions.
The Entity object.