So here is the first issue I have an ability that uses modify unit to transfer all units to said player everything works fine. Only problem I'm having is that the SCV's stop building and mining. So my question is... is there a way to make units keep there existing orders from the previous player?
2nd Issue - is there a way to transfer the amount of resources collected from one player to another through data if not i can stick with triggers.
Bumb... Maybe i explained my problem poorly. So i have a Hero unit with an ability that if used it will take over the whole computer allied army and then load him into the command center.
This is how the ability is designed. Ability is Effect - target that is linked to and Effect Search which looks for all allied units, then the search runs a Set Effect which runs Effect Modify unit (to change team over to hero unit) then Effect Issue Order (to load Hero into the Command Center)
This works fine but every time you load into the command center all the SCV's (and other unit) lose the previous orders which is very annoying because you have to go and start making all the SCV's gather minerals and gas again. Buildings also lose their previous order as well like training unit or upgrades.
So i want to know is there a flag i can check off somewhere or is this just how the game is upon control change.
Unfortunetely I was not able to solve this using pure data, both the modify player effect and placing a buff cleared the units existing order queue. My best guess is this will require triggers, by triggering on the targeting of a unit by the effect, and copying their existing order queue into a variable and then another trigger once the effect completes that adds all the orders back to the unit.
ya unfortunately i think its gotta be done that way. I did find though that through the behaviors modification if you go to the behaviors tab and check off uninterpretable orders. It works but only until the buff wheres off then they lose orders its weird and if you leave the buff on you can interrupt any of they're orders.
So here is the first issue I have an ability that uses modify unit to transfer all units to said player everything works fine. Only problem I'm having is that the SCV's stop building and mining. So my question is... is there a way to make units keep there existing orders from the previous player?
2nd Issue - is there a way to transfer the amount of resources collected from one player to another through data if not i can stick with triggers.
Bumb... Maybe i explained my problem poorly. So i have a Hero unit with an ability that if used it will take over the whole computer allied army and then load him into the command center. This is how the ability is designed. Ability is Effect - target that is linked to and Effect Search which looks for all allied units, then the search runs a Set Effect which runs Effect Modify unit (to change team over to hero unit) then Effect Issue Order (to load Hero into the Command Center) This works fine but every time you load into the command center all the SCV's (and other unit) lose the previous orders which is very annoying because you have to go and start making all the SCV's gather minerals and gas again. Buildings also lose their previous order as well like training unit or upgrades. So i want to know is there a flag i can check off somewhere or is this just how the game is upon control change.
Bump.. still none eh? well ill work on a work around until som1 responds. If i solve ill say how its done to help out the community.
Unfortunetely I was not able to solve this using pure data, both the modify player effect and placing a buff cleared the units existing order queue. My best guess is this will require triggers, by triggering on the targeting of a unit by the effect, and copying their existing order queue into a variable and then another trigger once the effect completes that adds all the orders back to the unit.
ya unfortunately i think its gotta be done that way. I did find though that through the behaviors modification if you go to the behaviors tab and check off uninterpretable orders. It works but only until the buff wheres off then they lose orders its weird and if you leave the buff on you can interrupt any of they're orders.