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

It's me again! – kill unit entering region, make new region

Status
Not open for further replies.
Level 3
Joined
Sep 28, 2012
Messages
21
Okay, so I'm trying to make it so if a unit walks into region (x) it will kill the unit and create a unit at region (Y). Help is appreciated!
 
Level 16
Joined
Mar 27, 2011
Messages
1,349
Simple:

  • Unit Spawn
    • Events
      • Unit - A unit enters Region X <gen>
    • Conditions
    • Actions
      • Unit - Kill (Triggering unit)
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at (Center of Region Y <gen>) facing Default building facing degrees
I'm guessing your new, so I wont bother you with memory leaks. Enjoy.

Here is the map if your still having trouble:
 

Attachments

  • Unit Region.w3m
    16.4 KB · Views: 55
Level 3
Joined
Sep 28, 2012
Messages
21
Simple:

  • Unit Spawn
    • Events
      • Unit - A unit enters Region X <gen>
    • Conditions
    • Actions
      • Unit - Kill (Triggering unit)
      • Unit - Create 1 Footman for (Owner of (Triggering unit)) at (Center of Region Y <gen>) facing Default building facing degrees
I'm guessing your new, so I wont bother you with memory leaks. Enjoy.

Here is the map if your still having trouble:

It kills the unit, but it doesn't create another unit.
 
Level 3
Joined
Apr 21, 2012
Messages
33
I guess you have to store the owner of triggering unit into a variable before killing a triggering unit.
 
Status
Not open for further replies.
Top