I need to access to the Teammates of a player.
So I used the Team module, I got the agent of the instigator and with a for I check if every other agent is friendly with him, using an if statement, but I don’t understand how I can check the result of team_attitude.
This is the code I’ve tried to write:
CheckDownedPerk(Agent : agent):void=
if(DownedMap[Agent] = 1):
Teams := GetPlayspace().GetTeamCollection()
for(Player : GetPlayspace().GetPlayers(), Agent2 := agent[Player]):
if(Attitude := Teams.GetTeamAttitude[Agent, Agent2]):
if(Attitude = team_attitude{Friendly}):
#Do something
The error I get is: team_attitude is not a macro.
I’ve also tried using enum{team_attitude}, but it still doesn’t work.