For the sake of simplicity, just use "if iTeam != loopPlayer.getTeam()". Compare the integer team value for the player that is active to the integer team value of the players being looped over.
Thank you. I made that change and the Field seems to be working properly when I built it (tried it in a couple of games with WorldBuilder). Could someone let me know if there are any other errors that need fixing? This is the latest version of the .py file.