• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Can't find damn leak x_x

Status
Not open for further replies.
Level 11
Joined
Aug 15, 2008
Messages
720
I made this very simple spell, but when I cast it, fps goes down and after some 5 casts fps is like 7-15. I suspect it was leak, but I can't really find it.

  • Ability Homing Missiles
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to ABILITY[2]
    • Actions
      • Set Unit_Temp = (Triggering unit)
      • Set Point_Temp = (Position of Unit_Temp)
      • -------- ------------------------------ --------
      • Set UGroup_Temp = (Units within 8000.00 of Point_Temp)
      • Unit Group - Pick every unit in UGroup_Temp and do (Actions)
        • Loop - Actions
          • Set Point_Temp2 = (Position of (Picked unit))
          • Unit - Create 1 Dummy - General for (Owner of Unit_Temp) at Point_Temp facing Default building facing degrees
          • Unit - Add Dummy - Homing Rocket to (Last created unit)
          • Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
          • Unit - Order (Last created unit) to Neutral - Firebolt (Picked unit)
          • Custom script: call RemoveLocation(udg_Point_Temp2)
      • -------- ------------------------------ --------
      • Custom script: call DestroyGroup(udg_UGroup_Temp)
      • Custom script: call RemoveLocation(udg_Point_Temp)
      • -------- ------------------------------ --------
      • Unit - Remove ABILITY[2] from Unit_Control[(Player number of (Owner of Unit_Temp))]
      • Unit - Add Ability - Slot to Unit_Control[(Player number of (Owner of Unit_Temp))]
      • -------- ------------------------------ --------
 
It's TRON map, players got vehicles and trails spawns behind em so you drive and surround enemies until they hit trails and receive massive damage.

There are about.... 60 more triggers. I choose 8k range cause there are Arenas (2 for now) to choose where to play. This ability affects all living players in Arena. Also, there are 7-8 players, so there aren't more than 8 targets. Also fps drops down in levels each time I cast, if it would be eg. 300 units, then I would receive one big lag spike and fps goes back to normal, but this time this is somekind of leak.
 
Status
Not open for further replies.
Back
Top