I'm currently working on a Tug of War Map and i want to do the following:
Each Player in a Team can train units, in buildings, which belong to an allied computer player. Every time a unit is trained by a player, it will be added to the unit pool tat spawns with each wave and increase the income of the player who trained the unit.
The problem i am encountering now, is the following: How do i find out, who trained the unit, when the building the unit is trained, belongs to a different player with shared control? I tried the "Any unit training progress" event, but it didnt work since i cannot find out who issued the train command.
I don't think a hook exists for finding a player who issues orders to a unit under another player's control. I recommend giving each player his own building or use dialog items to train units.
Hello,
I'm currently working on a Tug of War Map and i want to do the following:
Each Player in a Team can train units, in buildings, which belong to an allied computer player. Every time a unit is trained by a player, it will be added to the unit pool tat spawns with each wave and increase the income of the player who trained the unit.
The problem i am encountering now, is the following: How do i find out, who trained the unit, when the building the unit is trained, belongs to a different player with shared control? I tried the "Any unit training progress" event, but it didnt work since i cannot find out who issued the train command.
Any ideas?
I would imagine you need to take a different approach and store the unIt's trained by each player in advance.
I don't think a hook exists for finding a player who issues orders to a unit under another player's control. I recommend giving each player his own building or use dialog items to train units.
I would suggest this too myself. Just inserting the player integer who trained it into the units custom value would work perfectly.