void main() { location lLeverSpot = GetLocation(GetWaypointByTag("ty_wp_leverspot1")); if(GetLocalInt(OBJECT_SELF, "alc1chstused") == 0) { PlayAnimation(ANIMATION_PLACEABLE_OPEN); CreateObject(OBJECT_TYPE_PLACEABLE, "flrlever002", lLeverSpot, TRUE); SetLocalInt(OBJECT_SELF, "alc1chstused", 1); } else { object oLever = GetObjectByTag("ty_alcove1lever"); PlayAnimation(ANIMATION_PLACEABLE_CLOSE); DestroyObject(oLever); SetLocalInt(OBJECT_SELF, "alc1chstused", 0); } }