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

[Trigger] Does this spell Leak/lag where/how to fix

Status
Not open for further replies.
  • SS Loop
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
      • SS_Boolean Equal to True
    • Actions
      • Set SS_Real = (SS_Real + 0.15)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • SS_Real Greater than or equal to 2.00
        • Then - Actions
          • Sound - Stop SS_Sound Immediately
          • Sound - Play bomb_02 <gen>
          • Set SS_Sound = (Last played sound)
          • Set SS_Real = 0.00
          • Set SS_Point = (Position of Mountain King 0000 <gen>)
          • Special Effect - Create a special effect at SS_Point using Slam.mdx
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_SS_Point)
        • Else - Actions
  • SS Start
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
    • Actions
      • Set SS_Boolean = True
      • Wait 3.00 seconds
      • Set SS_Boolean = False
I know to it is not mui. I do not want it mui. Just give me suggestion how to reduce lag if he is here
 
Level 9
Joined
Dec 6, 2007
Messages
233
I can't seem to find any leaks. On performance, that makes sounds and effects every .39 seconds. If you're really squeezing for performance, you change the gain on SS_Real or the period of the trigger (or both) to reduce the effect spam. Otherwise well written!
 
Status
Not open for further replies.
Top