A brain for use with the BrainManager that causes its owner Entity to scale to a specific size then optionally delete the Entity completely.


This automatically deletes its own brain when the scale is complete and optionally deletes the entity as well.

Parameters it understands

scale_speed_msHow many milliseconds the scale should take.  Default is 1000.  (one second)
scalexthe desired final x scale.
scaleythe desired final y scale.
delete_entityif true, the entire entity will be deleted when the scale is complete.


//scale down to nothing and then delete itself
this:GetBrainManager():Add("Scale", "scalex=0.1;scaley=0.1;scale_speed_ms=500;delete_entity=true");
All Entity objects can use their BrainManager to add brains to control behavior and functions.
The Entity object.