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

[JASS] Unit being paused during a custom spell

Status
Not open for further replies.
Level 8
Joined
Oct 25, 2018
Messages
68
Hey there =)
I'm working on my project, and I've used a custom made spell which fit my char perfectly. However, I'm starting to run into the issue of where the spell somewhere pauses the casting unit, and it keeps the pause for almost a second after the spell is finished casting (it's a dash type of spell, unit is paused during the dash and briefly afterwards). It really ruins the character's otherwise fluid gameplay.

Tl;dr - Is it possible to remove the pause without severe consequences?
Spell used - Punitive Surge 1.02
 

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,867
I don't see any Pausing in that code. The ability must be based on Channel with "Disable Other Abilities" set to True and a "Follow Through Time" > 0. Disable Other Abilities acts as a Pause and Follow Through Time is how long it will last.

I would remove the Pause from the ability (Set Follow Through Time to 0.00 and Disable = False) and instead use this function when the unit Starts the effect of the ability:
vJASS:
call BlzPauseUnitEx(yourUnit, true);
You can then set BlzPauseUnitEx() to false when the dash is finished.

This function is only available on patch 1.32+ (possibly 1.31).

You could use a Dummy unit to Stun the Hero instead if you're on an older version.
 
Last edited:
Status
Not open for further replies.
Top