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

[General] Stop Transmission from Unit if that Unit dies during it?

Level 5
Joined
Aug 9, 2005
Messages
97
Just as the title says. I have a quest where a Unit is talking and afterwards the quest is available for the player, but only after the Unit finishes. I can have the quest fail if the Unit dies but the Transmission continues even if the Unit isn't alive, can't seem to find a way to just have it simply stop.
 
I assume this function ends up getting called if you request a wait=true: Doc - WaitTransmissionDuration

Then there's no way to cut the sleep duration early. You'd need to avoid built-in wait and instead recreate it on your own, such that it can abort early instead of repeating for the full duration. For example, sleep in small steps so it can be easily aborting based on an external boolean.
 
Back
Top