Im trying to give a unit an ability to train a unit. The trick is to make it train a unit for a different player and then issue an order to go to a certain point. It may be easy but I can't seem to get it to work.
So I found the trigger event "Unit - Any Unit construction progress is Completed". Is there a way to set "Any Unit" to a type of unit? I tried creating a variable of unit type. I also try unit filter. It won't accept those kind of variables. I dont want all units constructed to change players. Thanks for the help.
Thanks,
Cowdog13
Edit: Also i ran it with any unit and it changed some units but not the marine. The marine would not change sides?! Any idea why? Thanks again.
Edit 2: I figured out a way to not change the owner for every unit. The problem is it doesn't change the owner for the units (marines, zerglings, zealots, and marauders) but does for the turrets (missile turret, auto turret, photon cannon). I can't figure out why. Please help.
Im trying to give a unit an ability to train a unit. The trick is to make it train a unit for a different player and then issue an order to go to a certain point. It may be easy but I can't seem to get it to work.
Thanks, Cowdog13
@Cowdog13: Go
Just pseudocode, but I think this is pretty close to the actual code.
@Abion47: Go
So I found the trigger event "Unit - Any Unit construction progress is Completed". Is there a way to set "Any Unit" to a type of unit? I tried creating a variable of unit type. I also try unit filter. It won't accept those kind of variables. I dont want all units constructed to change players. Thanks for the help.
Thanks, Cowdog13
Edit: Also i ran it with any unit and it changed some units but not the marine. The marine would not change sides?! Any idea why? Thanks again.
Edit 2: I figured out a way to not change the owner for every unit. The problem is it doesn't change the owner for the units (marines, zerglings, zealots, and marauders) but does for the turrets (missile turret, auto turret, photon cannon). I can't figure out why. Please help.