Amon_PRC8/_module/nss/lycanpayload2.nss

22 lines
544 B
Plaintext
Raw Permalink Normal View History

2025-04-03 19:00:46 -04:00
void main()
{
string sItem = "LycanFire";
object oPC = GetLastAttacker();
object oDoor = GetObjectByTag("LycanForceDoor");
object oArea = GetArea(oPC);
object oObject = GetFirstObjectInArea(oArea);
int ObjectCount = GetLocalInt(GetModule(),"ObjectCount1");
ObjectCount = ObjectCount + 1;
if(ObjectCount >= 8)
{
SetLocked(oDoor,FALSE);
ActionOpenDoor(oDoor);
AssignCommand(oPC, PlaySound("as_hr_xwdrnoise5"));
ObjectCount = 0;
}
SetLocalInt(GetModule(), "ObjectCount1", ObjectCount);
}