I was wondering whether there is a possible code that could limit the number of entities being on a map, e.g. I don't want more than one shield on my map, so can I set a maximum count in my LUA script? I'm having the problem that the game ignores the if statement if GetCommandPostTeam("cp3") == 1.
Here's my code:
However the entity gets created everytime a commandpost is captured by team 1, regardless which one it is and I only want the entity to be created if cp3 gets captured.