//Put this OnUsed void main() { ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE); object oPC = GetLastUsedBy(); if (!GetIsPC(oPC)) return; object oTarget; oTarget = GetObjectByTag("fehnjail"); SetLocked(oTarget, FALSE); AssignCommand(oTarget, ActionOpenDoor(oTarget)); }