Placeable object help call

What it Does
When placed on a door (or other interactive placeable object), prompts the object to call for help. This will cause NPCs of the object's faction to come to it's aid, and go hostile on the PC. It's designed for preventing PCs from simply destroying doors and chests in range of guards and such, promoting a more realistic RPG experience.

The Script
Put In Door's "OnPhysicalAttacked"

//:://///////////////////////////////////////////// //:: Make door call for help when attacked //:: DOOR_ONATTACKD01 //:: Copyright (c) 2001 Bioware Corp. //::////////////////////////////////////////////// /*   Determines the attacking object of the door, and if the attacker is a valid player in the same area, the door will call for help. //::////////////////////////////////////////////// //:: Created By: Maglazar@hotmail.com //:: Created On: August 10, 2002 //::////////////////////////////////////////////// void main {   // Get the object that attacked the door object oPCAttacker = GetLastAttacker; // Make sure the attacking object is a valid object AND is a Player Character if(GetIsObjectValid(oPCAttacker) && GetIsPC(oPCAttacker)) {       // Make sure the attacking object is in the same area if(GetArea(oPCAttacker) == GetArea(OBJECT_SELF)) {           //Shout Attack my target SpeakString("NW_ATTACK_MY_TARGET", TALKVOLUME_SILENT_TALK); //Shout that I was attacked SpeakString("NW_I_WAS_ATTACKED", TALKVOLUME_SILENT_TALK); }  // end 'if' that checks area }      // end 'if' that checks validity of the attacking object }          // end 'main'