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

Why?!

Status
Not open for further replies.
Level 3
Joined
Sep 28, 2012
Messages
21
Alright. I have this:

Events - Unit - A unit enters Selection 1 <gen>

Conditions - (Unit-type of (Triggering unit)) Equal to Soul

Actions - Unit - Remove (Triggering unit) from the game
Unit - Create 1 Hero for (Triggering player) at (Center of Spawn <gen>) facing Default building facing degrees


I'm trying to make it so if a soul goes into the region (Selection 1) it will kill the soul and spawn a hero at the spawn region. I tried testing it and it did nothing except kill the soul. It didn't spawn the hero. What am I doing wrong?
 
Add the spawn location in a variable... and then remove it.

  • Event
    • Unit - A unit enters Selection 1 <gen>
  • Conditions
    • (Unit-type of (Entering unit)) Igual a Soul
  • Actions
    • Unit - Remove (Entering unit) from the game
    • Set TempLoc = (Center of Spawn <gen>)
    • Unit - Create 1 Hero for (Owner of (Entering unit)) at TempLoc facing Default building facing degrees
    • Custom script: call RemoveLocation(udg_TempLoc)
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
Warning: (Triggering Player) works for GENERIC UNIT EVENTS to refer to the (Owner of (Triggering Unit)) but this is a "A unit entes region" event, so, it doesn't work.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
(Triggering Unit) would never fail if you use any unit event. The other event response (Summoned Unit, Summoning Unit, etc.) are for cases when you have multiple events, or you need to detect more than one event responde (Like Caster and Target of Ability Being Cast), but (Triggering Unit) will always work even if you use a Wait action inside a trigger; wait actions would make your "Entering Unit" = null.
 
Status
Not open for further replies.
Top