PoA_PRC8/_module/nss/invroom_onexit.nss

19 lines
438 B
Plaintext
Raw Permalink Normal View History

2022-10-07 14:20:31 -04:00
//This script MUST Be in the OnExit event of the Inventory Room!
//Whenever anyone leaves it allows the room to be used.
//(Even if they logg out!)
void main()
{
object oPC = GetExitingObject();
//object oBox = GetObjectByTag("ihold4u");
//SetPlotFlag(oBox, FALSE);
//DestroyObject(oBox, 0.0f);
SetLocalInt(oPC, "INVROOMUSER", 0);
//Note this variable is removed when the PC leaves the area!
SetLocalInt(GetModule(), "INVUSE", 0);
}