• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Giving controlled unit back

Status
Not open for further replies.
Level 4
Joined
Jul 25, 2005
Messages
48
I have a problem I have an ability that takes control of a unit, that works but after the wait time I put in it doesn't change back this is what I used.

Unit - Change ownership of (Target unit of ability being cast) to (Previous owner) and Change color
 
Level 4
Joined
Jul 25, 2005
Messages
48
Ok, I tried making variables, this is what I did.

Actions
Unit - Change ownership of (Target unit of ability being cast) to (Owner of (Casting unit)) and Change color
Set Unit = (Target unit of ability being cast)
Set PLAYER = (Owner of Unit)
Wait 1.00 seconds
Unit - Change ownership of Unit to PLAYER and Change color
 
Status
Not open for further replies.
Top