void main() { object oTarget; int nInt; object oPC = GetPCSpeaker(); oTarget = GetObjectByTag("Duchin2"); AssignCommand(oTarget, ActionMoveToObject(GetObjectByTag("WP_Duchin2"))); oTarget = GetObjectByTag("Duchin2"); nInt = GetObjectType(oTarget); oTarget = GetObjectByTag("Duchin2"); DestroyObject(oTarget, 3.0); oTarget = GetObjectByTag("citgate1"); AssignCommand(oTarget, ActionCloseDoor(oTarget)); SetLocked(oTarget, TRUE); }