• 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.

How to make a unit disappear after...

Status
Not open for further replies.
Level 3
Joined
Sep 7, 2009
Messages
22
Ok, right now what I have is: After a certain cinematic finishes playing, an ogre spawns. I will order my unit to cast a spell on the ogre and then the ogre will simply disappear from the game.
There is a problem though... I don't know how to make it disappear after I cast the spell on it. How do I do that?

It's probably a simple question, but I'm not sure how to do it. Thanks! :grin:
 
you have to use triggers


Events are what make the trigger in effect
e.g. if i punch someone, i am creating an event for an action to occur

Conditions are pretty self explanatory,
e.g. if that person is a girl, that is a condition

Actions are also self explanatory, this is what will happen When and if an event occurs
e.g. the person i punched will slap me.



basically.

so for this trigger,

Event would be, unit - starts the effect of an ability (unit - generic unit event)
Conditions, right now this will occur for any ability that is casted, so you will have to make the condition that this action below will only occur for a specific spell that is casted, therefore
ability being cast = (your ability here)
Actions, unit - Remove target unit of ability being cast (unit - remove)
 
Level 6
Joined
Mar 22, 2009
Messages
276
the simplest answer may be the "Add - Expiration Timer".
Just a timer to that unit after it is created. Put a timer that will be enough for that unit to cast that spell.
 
Status
Not open for further replies.
Top