• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Actor Question

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Yes, you use actor events.

When cloaking activates destroy default actor and give it cloaking actor.
When cloaking deactivates destroy cloaking actor and give it default actor.

That is the principle behind it although the exact implimentation may be fidgety. I advise looking at the bunker or any other actor which goes through a large change under certain conditions.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Here is a demonstration map showing how easy it is to get units to change actor at will.

In this map you are given control of an ultralisk. When this ultralisk attacks it is visually changed to a thor. When the ultralisk stops attacking it is changed back to an ultralisk.

Notice the actor events used. "destroy" action is sufficient to remove the current actor while "create" will instantly create a new actor on the unit. Change the events to be run when your ability activates / deactivates and you will already be largly there to completing what you are after with actors. Some fine tuning may be needed to avoid bugs but that depends on situation and implemenation.
 

Attachments

  • Small Test Map.SC2Map
    24.8 KB · Views: 54
Last edited:
Status
Not open for further replies.
Top