void main() { int iEvent = GetUserDefinedEventNumber(); if (iEvent == 5555) { PlayAnimation (ANIMATION_PLACEABLE_ACTIVATE, 10.0); SetPlaceableIllumination (OBJECT_SELF, TRUE); RecomputeStaticLighting (GetArea(OBJECT_SELF)); } if (iEvent == 7777) { PlayAnimation (ANIMATION_PLACEABLE_DEACTIVATE, 10.0); SetPlaceableIllumination (OBJECT_SELF, FALSE); RecomputeStaticLighting (GetArea(OBJECT_SELF)); } }