Spell Trigger Makes Lag

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Oh its the offset that makes it lag now im guessing. Change ThunderPoint to EffectsPoint in the leak clearing. then add
Trigger:
  • call RemoveLocation(udg_ThunderPoint)

at the end.
Trigger:
  • For each (Integer A) from 1 to 6, do (Actions)
    • Loop - Actions
      • -------- Setting Point Again --------
      • -------- Increasing the "150" with make large spaces between effects and visa versa --------
      • Set EffectPoint[Integer A] = (EffectPoint[Integer A - 1] + 150.00)
      • -------- ----------- --------
      • -------- Special Effects --------
      • Special Effect - Create a special effect at (ThunderPoint offset by EffectPoint towards (Facing of ThunderCaster) degrees) using Abilities\Weapons\FarseerMissile\FarseerMissile.mdl
      • Special Effect - Destroy (Last created special effect)
      • -------- ----------- --------
      • -------- Creating Dummy and Setting Ability --------
      • Unit - Create 1 Dummy (Ice Beam) for (Owner of ThunderCaster) at (ThunderPoint offset by EffectPoint towards (Facing of ThunderCaster) degrees) facing Default building facing degrees
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
      • Custom script: call RemoveLocation(udg_EffectsPoint[Integer A])
    • Custom script: call RemoveLocation(udg_ThunderPoint)
 

eric92

New Member
Reaction score
3
How did you get effectpoint to have integer A?

Set EffectPoint[Integer A] = (EffectPoint[Integer A - 1] + 150.00)
 

HeX.16

Isn't Trollin You Right Now
Reaction score
131
Err that was hand written... You cant do it?
I dont have the editor open i sorta lost its exe somewhere...
Make it an integer value then convert it into a real in the next line and save in into a real variable?

Try putting the below into the loop
Trigger:
  • Set EffectPointI[Integer A] = (EffectPoint[Integer A - 1] + 150.00)
    • Set EffectPointR[Integer A] = EffectPoint[Integer A] =
 

eric92

New Member
Reaction score
3
Well i guess im just gona give up on this spell. I dont want to but I cant have laggy things in my game, ill just make a different spell to take its place. I dont think we will ever be able to fix this.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top