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

Blink type spell

Status
Not open for further replies.
Level 8
Joined
Dec 9, 2009
Messages
397
I have a blink type spell that moves the unit to the position of the targeted unit, but it's always to the south of the other unit, how would I tell it to move the unit to the opposite side of target, from where caster is coming from?


so Caster = O
Target = U
Appear point = B

-O-------------U-B

Another example:

--------------B---
------------U-----
------------------
------------------
------O----------

Currently it works like,
D where unit ends up now.

--O----------U
-------------D

Thanks for any info, btw I don't know jass :(
 
Seas =)

Maybe you should try this:

  • Blink
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Set CASTER = (Casting unit)
      • Set TARGET = (Target unit of ability being cast)
      • Set POINT = ((Position of TARGET) offset by 50.00 towards ((Facing of TARGET) - 180.00) degrees)
      • Unit - Pause CASTER
      • Unit - Move CASTER instantly to POINT, facing (Position of TARGET)
      • Unit - Unpause CASTER
      • Custom script: call RemoveLocation(udg_POINT)
This is behind the target and facing the target if you want this =O
 
Seas =)

I don't know but somehow I remember, if you use your ability without this pause / unpause stuff, the ability has no cooldown. .. or was this (wait 0.01 seconds) at the beginning. I don't know =P just check it out what happend ^^

And btw: This nothing against you but don't forget to give + rep for helping. ( I already miss many +rep ... )
 
Last edited:
I give rep after testing, asked before test.

Works great, thanks!

I have it without the pause, it works fine cooldown and all, unless someone can give a reason why I should use pause.
 
Note: To anyone using this post to help you, I did end up adding "Pause unit" and "Unpause Unit" because I found there was a problem with the cooldown, the cooldown worked fine if i targeted an enemy, but if it was an ally, there was no cooldown. After adding the pause/unpause triggers the abilities cooldown worked as intended.
 
Status
Not open for further replies.
Back
Top