Function working kind of slow, is it leaking?

Squishinator

New Member
Reaction score
3
Here are my two triggers.

Trigger:
  • Frost Bolt
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Frost Bolt
      • (Level of Frost Bolt for (Triggering unit)) Equal to 1
    • Actions
      • Set Caster_Point[2] = (Position of (Casting unit))
      • Set Target_Unit[2] = (Target unit of ability being cast)
      • Unit - Create 1 Dummy Frost Bolt for Player 1 (Red) at Caster_Point[2] facing 0.00 degrees
      • Set Dummy[2] = (Last created unit)
      • Trigger - Turn on Frost Bolt Dummy <gen>


Trigger:
  • Frost Bolt Dummy
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • Unit - Order Dummy[2] to Human Mountain King - Storm Bolt Target_Unit[2]


Are there any leaks?
 

mapguy

New Member
Reaction score
46
I think no, but making an action every 0.01 is too fast!
try using each 0.05 seconds.
 

UndeadDragon

Super Moderator
Reaction score
447
Trigger:
  • Set Caster_Point[2] = (Position of (Casting unit))


You don't actually remove that.

Use:

Trigger:
  • Custom Script - call RemoveLocation( udg_Caster_Point[2] )
 

Sajberhippie

New Member
Reaction score
30
You could even make the periodic trigger something like every 0.30 seconds, or at least 0.10. You'll rarely notice the difference and it'll be far less straining for the game.
 

Tichondrius

New Member
Reaction score
11
Thats why i posted. when i put even .01 its like every second.

I'm fairly certain there's a follow through time hard coded into Storm Bolt that would account for the delay. If you want it to cast seemlessly you will need to create a dummy unit every interval and order them to cast individually.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top