//Put this OnEnter void main() { object oTarget = GetObjectByTag("wolfdoor"); SetLocked(oTarget, FALSE); AssignCommand(oTarget, ActionOpenDoor(oTarget)); }