37 lines
600 B
Plaintext
37 lines
600 B
Plaintext
|
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")));
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|