void main() { int UEvent = GetUserDefinedEventNumber(); if (UEvent == 4001) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(), OBJECT_SELF); }