Battledale_PRC8/_module/nss/jw_lowyaswar_e.nss

37 lines
600 B
Plaintext
Raw Permalink Normal View History

void main()
{
{
object oObject = GetFirstObjectInArea();
int nPCinArea=FALSE;
location lLoc;
while (GetIsObjectValid(oObject))
{
if (GetIsPC(oObject))
{
nPCinArea = TRUE;
}
oObject=GetNextObjectInArea();
}
if (nPCinArea != TRUE)
{
//SetLocalInt(GetObjectByTag("jw_fir2_platet"),"trapped",TRUE);
SetLocalInt(GetObjectByTag("jw_fir2"),"Reset",1);
if (!GetIsObjectValid(GetObjectByTag("jw_wrong_barrel")))
{
CreateObject(OBJECT_TYPE_PLACEABLE,"jw_wrong_barrel",GetLocation(GetObjectByTag("jw_wrong_barrel_wp")));
}
}
}
}