PoA_PRC8/_module/nss/end_dm_npc_chat.nss
Jaysyn904 8d97886c3f Changed folder name.
Changed folder name.
2022-10-07 21:08:37 -04:00

20 lines
449 B
Plaintext

void main()
{
object oPC = GetPCSpeaker();
object oArea = GetArea(oPC);
object oThing;
//Set that the DM is finished controlling speech of objects..
SetLocalInt(oPC, "DM_NPC_CHAT", 0);
//Clear all variables from ALL Objects for speech control.
oThing = GetFirstObjectInArea(oArea);
while(GetIsObjectValid(oThing))
{
if(GetLocalInt(oThing, "DM_CHAT")==1)
SetLocalInt(oThing, "DM_CHAT", 0);
oThing = GetNextObjectInArea(oArea);
}
}