This piece of code is used in the fantasy character scripts.
function ai_fantasycharacter_exit(e)
PlayCharacterSound(e,"onDeath")
CollisionOff(e)
end
Destroy(e) can be used instead of onDeath, if this was not a character.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.