HoS_PRC8/_mod/_module/nss/dwf_avoidfire.nss
Jaysyn904 04165202c0 Initial upload
Initial upload
2024-11-25 19:36:07 -05:00

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
}