void main()
{
  if (GetLocalInt(OBJECT_SELF,"Done") == 0)
  {
    object oPC = GetEnteringObject();
    if (GetIsPC(oPC))
    {
      ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectDamage(12,DAMAGE_TYPE_PIERCING,DAMAGE_POWER_NORMAL),oPC);
      FloatingTextStringOnCreature("As you round the corner, a huge crossbow bolt flies out of the darkness.",oPC);
      DelayCommand(2.0f,FloatingTextStringOnCreature("You hear heavy receding footfalls and the sound of a door slamming.",oPC));
      SetLocalInt(OBJECT_SELF,"Done",1);
    }
  }
}
