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

[Solved] How to change owner of summoned unit

Level 9
Joined
Mar 26, 2020
Messages
210
Ive seen many mods that has this feature, especially in survival defense (the summon unit buildings and will become npc that automatically attacks, defender, etc)
How do you do that? in my case i want a mercenary unit that when purchased it will change owner and expires(remove unit) after a set of time
 
If the unit is sold like a unit in a Mercenary Camp/Dragon Roost, then this could work as well:
  • Mercenary Sold
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • (Unit-type of (Sold unit)) Equal to Forest Troll Shadow Priest
      • (Unit-type of (Selling unit)) Equal to Mercenary Camp (Lordaeron Summer)
    • Actions
      • Unit - Add a 60.00 second Generic expiration timer to (Sold unit)
      • Unit - Change ownership of (Sold unit) to Player 2 (Blue) and Change color
 
Back
Top