• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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 ?
 
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:
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.
Back
Top