• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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