14 lines
434 B
Plaintext
14 lines
434 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC=GetEnteringObject();
|
||
|
string sID=GetLocalString(oPC,"sTeamID");
|
||
|
object oWP=GetWaypointByTag(GetTag(OBJECT_SELF));
|
||
|
int nFire=GetLocalInt(GetArea(oPC),"nFireActive");
|
||
|
if (GetIsPC(oPC)==FALSE&&nFire==TRUE&&sID=="DWF")
|
||
|
{ // avoid fire
|
||
|
SetLocalInt(oPC,"nSState",0);
|
||
|
AssignCommand(oPC,ClearAllActions(TRUE));
|
||
|
AssignCommand(oPC,ActionMoveToObject(oWP,TRUE,1.0));
|
||
|
} // avoid fire
|
||
|
}
|