PWE_PRC8/_module/nss/start_fight.nss

18 lines
504 B
Plaintext
Raw Permalink Normal View History

2025-04-03 10:29:41 -04:00
void main()
{
object oBoxerRed = GetObjectByTag("BOXER_RED");
object oBoxerBlue = GetObjectByTag("BOXER_BLUE");
SetIsTemporaryEnemy(oBoxerRed,oBoxerBlue);
SetIsTemporaryEnemy(oBoxerBlue,oBoxerRed);
AssignCommand(oBoxerRed,ClearAllActions());
AssignCommand(oBoxerRed,ActionAttack(oBoxerBlue));
AssignCommand(oBoxerBlue,ClearAllActions());
AssignCommand(oBoxerBlue,ActionAttack(oBoxerRed));
SetLocalInt(oBoxerRed,"Fight",1);
SetLocalInt(oBoxerBlue,"Fight",1);
}