• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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