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

Cooldown on Teleport

Status
Not open for further replies.
Level 3
Joined
May 19, 2008
Messages
32
hi,
is there a command that resets the cooldown for a specified spell ?

when i create a teleport spell i basically move the unit instantly, before the cooldown starts to take effect ... which sux

or is there an event like EVENT_PLAYER_UNIT_SPELL_CAST, EVENT_PLAYER_UNIT_SPELL_START ect.. that times exactly the point when the cast is still in progress (so i have access to all target data) but the cooldown is already executed (i dont want to use a timer and transfer all the data ect..)

any ideas ?
 
Level 3
Joined
May 19, 2008
Messages
32
kk thanx4reply :grin:


... no that doesnt work ... no cooldown on skills that are added

using
UnitAddSkill(..)
or UnitAddSkillBJ(..)
or SelectHeroSkill(..)

...i could remove all other skills then cooldown and then add the other skills again ... but thats stupidno ?
 
Last edited:
Level 3
Joined
May 19, 2008
Messages
32
no im trying the opposite,

when i move my unit before the spell is finished i dont get the cooldown effect
on the other hand if i wait till its finished i dont have access to target data anymore because the spell is over

i thought there must be an easier way than staring all the target data and then creating a waiting timer that fires the spells effects taking the target data from a cache after the spell is finished ...
 
Last edited:
Status
Not open for further replies.
Top