I want to make a unit so that it has an ability that morph it into a new unit but I want the morph to have a time limit so that when it runs out of time the unit morphs back. I've looked over the morph ability but can't find a way to do it.
I would suggest giving the unit you are morphing to a Buff behavior that, upon expiring, issues the unit an order (there is an issue order effect) to Morph back into the original unit.
If you want a timed bar, just use the behavior's UI: Display Countdown field. Have the bar show up for Self.
Ok I tried the temporary morph and in works. Just one thing that is a bit off topic, does anyone know how to add animation to the morph, I've looked through the siege tank and other morphing units actors but i can't figure it out.
I want to make a unit so that it has an ability that morph it into a new unit but I want the morph to have a time limit so that when it runs out of time the unit morphs back. I've looked over the morph ability but can't find a way to do it.
I would suggest giving the unit you are morphing to a Buff behavior that, upon expiring, issues the unit an order (there is an issue order effect) to Morph back into the original unit.
If you want a timed bar, just use the behavior's UI: Display Countdown field. Have the bar show up for Self.
Never tried this, but what about the duration fields in the Morph ability?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go I believe the duration fields actually set how long it takes to morph. I might be wrong though.
I'd use OneSoga's suggestion. You will need to create one more morph ability, to make the new unit morph back to the original one.
Actually the delay is what affects how long it takes, that is why I was asking what the duration does.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Ok I tried the temporary morph and in works. Just one thing that is a bit off topic, does anyone know how to add animation to the morph, I've looked through the siege tank and other morphing units actors but i can't figure it out.
AbilityMorph * Start
-> Morph From UNIT1
-> Morph To UNIT2
And just include here what you want.