• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

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