I suppose you could disable movement/etc with a behavior and using the load/unload effects (part of the load/unload ability) you could have this behavior given/taken away.
So there's probably a "more clean" way through the data editor, but using triggers you could have a trigger that fires when your Goliath uses a load ability on the Dropship (you'd have to create this "dummy" load ability) which enables movement and changes ownership of the Dropship.
Upon unload you could have a second trigger fire that changes ownership back to neutral and disables movement again.
Alternately if you didn't want to add an ability to the Goliath like that you could have a trigger fire when the Goliath walks within X distance of the Dropship that does the above. That may lead to accidental loadings though.
A third option would be to have the ability on the Dropship and add control to your unit when in range (like a merchant, I think there's a flag to do this, but there are tutorials on here for it as well). This way when you walk in range of the Dropship you gain temporary control of it so that you can click load which will then make you the owner.
i got i working with triggers you just have to be near the ship to change to your team but i remember playing a map were you couldn't control the dropship unless your hero was inside
It is somewhat complicated. What you will have is a Transport ability on the thor/goliath/unit to be piloted. Then you will want it to run an apply behavior effect on a unit being loaded (Load Effect). This behavior will be applied to the Caster (the transport unit). The behavior will be a buff behavior that changes control to the Target (the unit being loaded). This way the piloted unit will be under the control of whoever is loaded in. Then, as an unload effect, remove the behavior.
The Target/Caster aspect of the behavior application may be reversed, but that is the general idea.
I'm not sure if I'm asking in the right spot but how do I make it so you have to have a unit in a dropship goliath hellion ect. to control it?
I suppose you could disable movement/etc with a behavior and using the load/unload effects (part of the load/unload ability) you could have this behavior given/taken away.
@MaskedImposter: Go
how would i go about loading a unit in a neutral unit though
So there's probably a "more clean" way through the data editor, but using triggers you could have a trigger that fires when your Goliath uses a load ability on the Dropship (you'd have to create this "dummy" load ability) which enables movement and changes ownership of the Dropship.
Upon unload you could have a second trigger fire that changes ownership back to neutral and disables movement again.
Alternately if you didn't want to add an ability to the Goliath like that you could have a trigger fire when the Goliath walks within X distance of the Dropship that does the above. That may lead to accidental loadings though.
A third option would be to have the ability on the Dropship and add control to your unit when in range (like a merchant, I think there's a flag to do this, but there are tutorials on here for it as well). This way when you walk in range of the Dropship you gain temporary control of it so that you can click load which will then make you the owner.
@DaBernMon: Go
i got i working with triggers you just have to be near the ship to change to your team but i remember playing a map were you couldn't control the dropship unless your hero was inside
It is somewhat complicated. What you will have is a Transport ability on the thor/goliath/unit to be piloted. Then you will want it to run an apply behavior effect on a unit being loaded (Load Effect). This behavior will be applied to the Caster (the transport unit). The behavior will be a buff behavior that changes control to the Target (the unit being loaded). This way the piloted unit will be under the control of whoever is loaded in. Then, as an unload effect, remove the behavior.
The Target/Caster aspect of the behavior application may be reversed, but that is the general idea.
@ArcaneDurandel: Go
i have no idea how to use behaviors but i want to use them instead of the triggers. I'm just not sure how to apply what your saying