void main() { object oPC = GetPCSpeaker(); object oTarget; oTarget = GetObjectByTag("nobletoduk"); AssignCommand(GetObjectByTag("dukgrd1"), SetFacingPoint(GetPosition(oTarget))); oTarget = GetObjectByTag("dukgrd1"); AssignCommand(oTarget, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 1.0f, 2.0f)); oTarget = GetObjectByTag("nobletoduk"); SetLocked(oTarget, FALSE); AssignCommand(oTarget, ActionOpenDoor(oTarget)); object oItem; oItem = GetItemPossessedBy(oPC, "paintedshell"); if (GetIsObjectValid(oItem)) DestroyObject(oItem); oItem = GetItemPossessedBy(oPC, "paintedshell"); if (GetIsObjectValid(oItem)) DestroyObject(oItem); }