I want the player to click on a button and instead of the unit being trained it gets created in a place across the map. I've been trying for ages but can't figure out a way to do this.
Well, you have quite a lot ways to do this, depending on the actual method of training the unit.
I used a usual train ability in combination with a trigger, which fires, whenever a unit is created by the unit building. This trigger moves the unit to the specified location and orders it to attack move.
If you use other methods, like dialogs for sending units, this would change; since you need to create the unit per trigger as well.
I want the player to click on a button and instead of the unit being trained it gets created in a place across the map. I've been trying for ages but can't figure out a way to do this.
Well, you have quite a lot ways to do this, depending on the actual method of training the unit.
I used a usual train ability in combination with a trigger, which fires, whenever a unit is created by the unit building. This trigger moves the unit to the specified location and orders it to attack move.
If you use other methods, like dialogs for sending units, this would change; since you need to create the unit per trigger as well.