UW2_PRC8/_module/nss/end_dm_npc_chat.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -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);
}
}