In this case I want the unit to be able to use an ability while still moving.
The thing is, it has to be able to function in multiplayer. I've tried variables and databanks, though when I issue the order to the unit to move, give another unit another move command and use the ability afterwards the unit ofcourse moves to the second unit's saved position.
No eggs included :P
See it like this, i have this unit with 3 morph abilities, he can have a total of 4 different "stances".
The morph ability type itself doesn't have a transient flag, so when the unit moves to a position and the player clicks on the morph ability button he stops walking. I must find a way that simmulates the transient flag.
You'll probably need the aid of a trigger here... I agree it should all be in the ability, but unfortunately, I believe the way SCII handles the morphing is that it replaces the whole actor...
make a trigger that fires when the ability is used? I do'nt have the editor open atm, but I believe there are events and trigger stuff in there for morphing units and the like.
Make a proxy ability of type "effect - instant." This is the ability the player will click that will actually be on the command card.
Make an effect of type "Issue Order", set the unit to Caster and set the ability to your morph ability. Under command flags check "Preempt" and set the proxy ability's effect to this.
What happens is that when the ability is used, it places the morph ability at the top of the unit's order queue but retains the rest of the order queue, so after morphing the unit will resume its previous orders.
In this case I want the unit to be able to use an ability while still moving. The thing is, it has to be able to function in multiplayer. I've tried variables and databanks, though when I issue the order to the unit to move, give another unit another move command and use the ability afterwards the unit ofcourse moves to the second unit's saved position.
location.
flag the ability as transient.
cloak doesn't stop a ghost while running.
Ah yeah, that should work, But in this case it is a morph ability, it doesnt have a transient flag.
@Ratazor: Go
you want the unit popping out of an egg remember where its parent units was heading to?
or should the egg move as well?
No eggs included :P See it like this, i have this unit with 3 morph abilities, he can have a total of 4 different "stances". The morph ability type itself doesn't have a transient flag, so when the unit moves to a position and the player clicks on the morph ability button he stops walking. I must find a way that simmulates the transient flag.
You'll probably need the aid of a trigger here... I agree it should all be in the ability, but unfortunately, I believe the way SCII handles the morphing is that it replaces the whole actor...
Anyone any idea how to approuch this? I gave it a few shots, but got nothing good out of it. Now I kinda hit a block on how to do this =(
make a trigger that fires when the ability is used? I do'nt have the editor open atm, but I believe there are events and trigger stuff in there for morphing units and the like.
Here's what you do:
What happens is that when the ability is used, it places the morph ability at the top of the unit's order queue but retains the rest of the order queue, so after morphing the unit will resume its previous orders.
Well, another route is to avoid morphs all together, and use model swaps instead. Depending on what the "stances" do to the unit.
@RileyStarcraft: Go
That worked, much thanks :D A real lifesaver!