void main() { object oDoor = GetObjectByTag("fr_iwd_todocks"); object oTarget = GetObjectByTag("fr_iwd_qboat"); if((GetLocalInt(oTarget, "Chk")==0)) { DelayCommand(0.7, ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE, 1.0, 0.0)); SetLocalInt(oTarget,"Chk", 1); SendMessageToAllDMs("The docks WITH the ship has been activated."); } else { DelayCommand(0.7, ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE, 1.0, 0.0)); SetLocalInt(oTarget,"Chk", 0); SendMessageToAllDMs("The docks WITHOUT the ship has been activated."); } }