• Check out the results of the Techtree Contest #19!
  • 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 void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Expiration Timer Problem

Status
Not open for further replies.
Level 6
Joined
Mar 29, 2004
Messages
222
I'm creating a mind control spell and having that gauge showing the amt of time left that the unit will be controlled would really help.

So, in short, is it possible to remove an expiration timer (i know how to add one) from a unit with an expiration timer? thanks.
 
Ever tried to set the timer to 0 seconds... dunno if it will work but its worth a try
 
Heres an idea

When the origional unit's expiration timer gets to [.01] seconds, just Replace the unit with another one of itself, and convert the control

You can also try

Custom Script: call UnitRemoveAbility( udg_MyUnit, 'BTlf' )

Which assumes that you have the mind control unit in a MyUnit Unit variable, and you are using a Generic expiration timer. Im not sure if this works, but its worth a shot.
 
I've already tried removing 'BTLF', but it kills the unit instantly. I tried pausing the timer, and then removing the ability, but it neither worked.
The only thing that you can do is replacing the unit, but be carefull, all variables that refer to the original unit will be 'nullified'. Problems could occur with items, and aahh yes, abilities (if we're talking about a hero).
 
Status
Not open for further replies.
Back
Top