In the trigger editor I don't see a way to set a 'Player' type variable or parameter. It's got "Player Group" and "Player Color" but no "Player". Pretty annoying. i guess for now I'll make the function return "Player Group" and just make the calling trigger use the first (and only) player from the returned group.... Or maybe Integer is synonymous to Player? It does seem to use them interchangeably in the 'Player' triggers (ie. you can use "player (1)" or you can use "player (owner of (unit_a))"...
If I have the method return integer I guess that'll work. Weird that there's no Player type!
In the trigger editor I don't see a way to set a 'Player' type variable or parameter. It's got "Player Group" and "Player Color" but no "Player". Pretty annoying. i guess for now I'll make the function return "Player Group" and just make the calling trigger use the first (and only) player from the returned group.... Or maybe Integer is synonymous to Player? It does seem to use them interchangeably in the 'Player' triggers (ie. you can use "player (1)" or you can use "player (owner of (unit_a))"...
If I have the method return integer I guess that'll work. Weird that there's no Player type!
Players are represented by integers now.