void main() { object oPC = GetEnteringObject(); if (!GetIsPC(oPC)) return; object oTarget; oTarget = GetObjectByTag("FORCEFIELD1"); AssignCommand(oTarget, ActionCloseDoor(oTarget)); }