• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Capture Unit on Death help triggers

Status
Not open for further replies.
  • some trigger
  • Events
  • Unit - A unit dies
  • Conditions
  • Actions
  • Unit create a unit for owner of killing unit at posision of dying unit
written at free hand

EDIT right one is bellow not free hand
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to (Unit-type of your_unit)
    • Actions
      • Unit - Create 1 (Unit-type of (Dying unit)) for (Owner of (Killing unit)) at (Position of (Dying unit)) facing Default building facing degrees
i know it leaks but i show how to do this not how to make leakless :P
 
You can use Resurrection ability. Make it revive one unit. When a unit dies, create a dummy at he unit's position and order the unit to use resurrection. Then change the owner of the dying unit. Make sure the death of the dummy won't run the action, otherwise the game will freeze since it causes an infinite loop.
 
Status
Not open for further replies.
Back
Top