Is there a way to compare two agent variables to check if they are the same player?

I need to check if two saved Player (agent) variables are the same person.

if(Player1 <> CurrentLeader):
   Print("New Leader")

This example and many other methods I have tried don’t work, as it always fails. Is there a way to do this?

This is strange, I’m pretty sure it works, agent, player and fort_character are comparable which mean they can be compared and used as Indexes for maps which I do all the times.

You should check your code again, maybe your Player1 is not really the CurrentLeader after all :thinking:

Find a fix?