Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
you can try changing the ship's ownership via triggers to have other units load into it. i figured that a unit cannot enter another player's transport, so to load a unit into the ship it must be selected (thus the owner becomes the player selecting it) and the ship is ordered to load the unit.
Ive made some headway and it works now, the only problem is that I want the unit that has been unloaded to move to a certain destination.
Everything here works perfectly except for the last line "Unit - Order TransportUnit2[(Integer A)] to Attack-Move To (Center of SpawnA2 Copy <gen>)" Which doesn't work at all.
I tried replacing it with a 'kill' action with the same variable and that worked.
Any ideas? I'm stumped <.<
Batfrakt
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Batfrakt
Actions
For each (Integer A) from 1 to 100, do (Actions)
Loop - Actions
Set TransportUnit2[(Integer A)] = (Target unit of ability being cast)
Set TransportUnit[(Integer A)] = (Owner of TransportUnit2[(Integer A)])
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Triggering unit)) and Retain color
Unit - Add Load (colke) to (Triggering unit)
Unit - Order (Triggering unit) to Load TransportUnit2[(Integer A)]
Unit - Remove Load (colke) from (Triggering unit)
Batfrakt2
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Unload (colke)
Actions
For each (Integer A) from 1 to 100, do (Actions)
Loop - Actions
Unit - Change ownership of TransportUnit2[(Integer A)] to TransportUnit[(Integer A)] and Change color
Unit - Order TransportUnit2[(Integer A)] to Attack-Move To (Center of SpawnA2 Copy <gen>)
My guess is that the unit is still in the transport when that order comes out. try changing the trigger event from the unload ability (For trigger 2), to unit enters the area you want it to be unloaded at.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.