Morphing unit problems

Exfyre

hmm...
Reaction score
60
I have a unit that I want to upgrade into another unit. However, when the unit is morphed it retains the same actor as before it morphed. For example,

Unit A - Actor: Zealot
Unit B - Actor: Zergling

Unit A morph to Unit B. Retains Zealot actor but has all the stats of Unit B.

Are there flags I need to set or do I need to trigger this?

Thanks in advance,
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
I would assume it could easily be done by adding an actor event in the Zealot that destroys the actor when the morph finishes and adding an actor event in the zergling that creates it when the morph finishes.
 

Exfyre

hmm...
Reaction score
60
This appears to be the correct way, but I can't figure out how to make it work.

This is the event i have on my first unit:
Actor1
Event: Abil.*.Finish
Term: MorphFrom (Unit1)
Term: MorphTo(Unit2)
Action: Destroy

Actor2
Event: Abil.*.Finish
Term: MorphFrom (Unit1)
Term: MorphTo(Unit2)
Action: Create

For some reason, when it does the create, it uses the actor from the first unit instead of the second unit
 

Exfyre

hmm...
Reaction score
60
Aha! I finally figured it out. If you are morphing a unit and the unit you morph to uses the same model, you have to destroy the first actor at the start of the morph

Working one:

Actor1
Event: Abil.*.Start
Term: MorphFrom(Unit1)
Action: Destroy

Actor2
Event: Abil.*.Finish
Term: MorphFrom(Unit1)
Term: MorphTo(Unit2)
Action: Create

+rep for the help
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top