HoS_PRC8/_mod/_module/nss/dwf_avoidfire.nss

14 lines
434 B
Plaintext
Raw Normal View History

2024-11-25 19:36:07 -05:00
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
}