//this is the script to kill things that need to die onspawn void main() { ApplyEffectToObject(DURATION_TYPE_PERMANENT,EffectDeath(),OBJECT_SELF); }