Event: player selects building
cminerals = current minerals triggering player
handle income of triggering player ()
while (unit is selected){
set triggering player's minerals to selected player minerals
pause 0.0
}
set triggering player's minerals to cminerals + income
you will need to handle selecting multiple units etc
I'm able to make players share control, thats not my issue. I feel like this thread is derailing and my question is being misinterpreted.
I'm looking for a way for a way to detect when a person clicks on the ability-button of a train-ability in the command card(before you place the building, when you're choosing where to place it). This way I can have players order other player's builders to create buildings, using the builder's owner resource pool.
not possible (unless you are using a shity mouse clicked event workaround)
Event: player selects building
cminerals = current minerals triggering player
handle income of triggering player ()
while (unit is selected){
set triggering player's minerals to selected player minerals
pause 0.0
}
set triggering player's minerals to cminerals + income
you will need to handle selecting multiple units etc
not possible (unless you are using a shity mouse clicked event workaround)
unit selection - change ownership then change back when finished