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.
scale_speed_ms | How many milliseconds the scale should take. Default is 1000. (one second) |
scalex | the desired final x scale. |
scaley | the desired final y scale. |
delete_entity | if 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");