FadeOutAndDelete

A brain for use with the BrainManager that causes its owner Entity to become invisible over time and then deletes the Entity completely.

Note

This deletes the entire Entity after fading out, not just the brain.

Parameters it understands

fade_speed_msHow many milliseconds the fade should take.  Default is 1000.  (one second)

Usage

//this entity died, fade out quickly then remove us (the whole entity)
this:GetBrainManager():Add("FadeOutAndDelete", "fade_speed_ms=50");
All Entity objects can use their BrainManager to add brains to control behavior and functions.
The Entity object.