Files
HeroesStone_PRC8/_module/nss/arena_t_ce_enter.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

16 lines
497 B
Plaintext

///////////////////////////////////////////////////////////
// Arena - OnEnter - Contestant Trigger
// By Deva Bryson Winblood.
///////////////////////////////////////////////////////////
void main()
{
object oPC=GetEnteringObject();
object oOb=GetNearestObjectByTag("ARENA_EventMaster",oPC,1);
int nState=GetLocalInt(oOb,"nState");
object oCon=GetLocalObject(oOb,"oContestant");
if (oPC==oCon&&nState==1)
{ // at location
SetLocalInt(oOb,"nState",2);
} // at location
}