void main() { object oObject; object oOther; if (GetTag(OBJECT_SELF)=="jw_andros_lev1") { oOther=GetObjectByTag("jw_andros_lev2"); } else { oOther=GetObjectByTag("jw_andros_lev1"); } if (GetLocalInt(OBJECT_SELF,"NW_L_AMION") != 1) { PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE); SetLocalInt(OBJECT_SELF,"NW_L_AMION",1); AssignCommand(oOther,PlayAnimation(ANIMATION_PLACEABLE_ACTIVATE)); SetLocalInt(oOther,"NW_L_AMION",1); SetLocalInt(GetArea(OBJECT_SELF),"andtrap",2); } else { PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE); AssignCommand(oOther,PlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE)); SetLocalInt(oOther,"NW_L_AMION",0); SetLocalInt(OBJECT_SELF,"NW_L_AMION",0); SetLocalInt(GetArea(OBJECT_SELF),"andtrap",0); } }