There’s a problem where agent initializes before fortcharacter can, and it needs the fortcharacter to assign the class.
Try:
OnAgentSpawn(Agent:agent):void=
spawn{ValidateAgent(Agent)}
ValidateAgent(Agent:agent)<suspends>:void=
if(Player:=player[Agent]):
race:
loop:
Sleep(0.1)
if(Fort:=Agent.GetFortCharacter[],Fort.IsActive[]):
Sleep(0.33)
PlayerInit(Player)
break
block:
Sleep(5.0)
Print("Error: Agent Unable to Validate FortChar")
PlayerInit(Player:player):void=
# Change class here