22 lines
544 B
Plaintext
22 lines
544 B
Plaintext
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);
|
|
|
|
}
|