• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Detect if a unit is still casting a spell

Status
Not open for further replies.
Level 12
Joined
May 22, 2015
Messages
1,051
I have a spell that is channelled that does some trigger stuff periodically. The trigger stuff should immediately stop if the unit stops channelling the spell. Is there some way to detect if the unit is still channelling the spell?

I would imagine it has something to do with unit orders. Anyway, the spell is based off of starfall.

EDIT:
I am perfectly fine with the stopping part. I can handle everything else, I just want to know what check can be made to see if the unit is still channelling the correct spell.
 
Level 12
Joined
May 22, 2015
Messages
1,051
Unit stops casting should work. However, it will also fire when the spell finished channeling (without getting interrupted), keep that in mind.

That's perfect. I suppose I could even just not have an end case for the periodic effect other than detecting when the unit stops casting.
 
Status
Not open for further replies.
Top