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

Destroy Trigger

Status
Not open for further replies.
Level 9
Joined
Oct 17, 2007
Messages
547
Does anyone know a proper "custom text" to destroy triggers that only run once in GUI? I just want to destroy the init triggers so the map runs with less lag hopefully.

And are there ways to destroy floating text? or just make them expire?
 
Level 5
Joined
May 12, 2008
Messages
80
  • Your Trigger
    • Ereignisse
    • Bedingungen
    • Aktionen
      • Schwebender Text - Create floating text that reads HERE YOUR TEXT above (Last created unit) with Z offset 0.00, using font size 10.00, color (100.00%, 50.00%, 0.00%), and 0.00% transparency
      • Schwebender Text - Change (Last created floating text): Deaktivieren permanence
      • Schwebender Text - Change the fading age of (Last created floating text) to 1.00 seconds
      • Schwebender Text - Change the lifespan of (Last created floating text) to 1.90 seconds
This should work
 
Level 11
Joined
May 16, 2007
Messages
288
Don't destroy triggers. It causes serious and unpredictable bugs that aren't worth the small performance gain from destroying them.

Floating texts are automatically destroyed when they expire.

QFT

Don't destroy triggers, ever, if the trigger's thread is still running when you destroy it (it does NOT end when all trigger actions are over, idk why, but it doesn't), it will cause handle stack corruption, which is REALLY REALLY BAD, avoid destroying triggers like the plague.
 
Status
Not open for further replies.
Top