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

reviving system

Status
Not open for further replies.
Level 6
Joined
Jul 13, 2007
Messages
173
hello i need a system that changes owner of unit when it is selected here is how i want it. its a hero revive altar

when you select unit (my unit)
change owner of unit to selecting player

then when i deselect it it should be changed back to the owner that had it first please help me if you dont understand what i want to do ask me i will give a more detailed info
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
  • Events
    • Player - Player x selects a unit
  • Conditions
    • Triggering Unit equal to *your altar*
  • Actions
    • Set owner = Owner of (Triggering Unit)
    • Unit - Change Owner of (Triggering Unit) to (Triggering Player)
And the second one:
  • Events
    • Player - Player x deselects a unit
  • Conditions
    • Triggering Unit equal to *your altar*
  • Actions
    • Unit - Change Owner of (Triggering Unit) to owner
Untested but it should work (owner is a player-variable ;) )
 
Status
Not open for further replies.
Top