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

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