Map Jerking after a while

ianu74

New Member
Reaction score
8
I noticed that when i played my map, it starts to get jerky and sort of stops every 3 seconds. Anyone has any ideas why?
I think its due to this trigger, can anyone see if its leaking?
Trigger:
  • Tigers Roar
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Tiger's Roar
    • Actions
      • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Angle from (Position of (Triggering unit)) to (Target point of ability being cast)) degrees
      • Set TigersRoar = (Last created unit)
      • Set WhiteHuntress = (Triggering unit)
      • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
      • Trigger - Turn on Tiger Roar <gen>
      • Wait 1.00 seconds
      • Trigger - Turn off Tiger Roar <gen>
Trigger:
  • Tiger Roar
    • Events
      • Time - Every 0.04 seconds of game time
    • Conditions
    • Actions
      • Set Temp_point = ((Position of TigersRoar) offset by 30.00 towards (Facing of TigersRoar) degrees)
      • Unit - Move TigersRoar instantly to Temp_point
      • Special Effect - Create a special effect at Temp_point using Abilities\Spells\NightElf\BattleRoar\RoarCaster.mdl
      • Special Effect - Destroy (Last created special effect)
      • Unit Group - Pick every unit in (Units within 300.00 of Temp_point matching ((((Matching unit) belongs to an enemy of (Owner of TigersRoar)) Equal to True) and (((Matching unit) is alive) Equal to True))) and do (Actions)
        • Loop - Actions
          • Set TempPoint2 = ((Position of (Picked unit)) offset by 30.00 towards (Angle from Temp_point to (Position of (Picked unit))) degrees)
          • Unit - Move (Picked unit) instantly to TempPoint2
          • Unit - Cause WhiteHuntress to damage (Picked unit), dealing (0.20 x (Real(((Level of Tiger's Roar for WhiteHuntress) x (Hero level of WhiteHuntress))))) damage of attack type Spells and damage type Universal
          • Special Effect - Create a special effect attached to the origin of (Picked unit) using Abilities\Weapons\AncientProtectorMissile\AncientProtectorMissile.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation (udg_TempPoint2)
      • Custom script: call RemoveLocation (udg_Temp_point)
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Trigger:
  • ((Position of TigersRoar) offset by 30.00 towards (Facing of TigersRoar) degrees)


Leaks... Need to put (Position of (TigersRoar)) into a variable :D (And of course destroy it ;))

Trigger:
  • Unit Group - Pick every unit in (Units within 300.00 of Temp_point matching ((((Matching unit) belongs to an enemy of (Owner of TigersRoar)) Equal to True) and (((Matching unit) is alive) Equal to True))) and do (Actions)


Leaks... Need to put that into a Unit-Group variable and then destroy it :D

Trigger:
  • Set TempPoint2 = ((Position of (Picked unit)) offset by 30.00 towards (Angle from Temp_point to (Position of (Picked unit))) degrees)


Leaks... Need to put (Position of (Picked unit)) into a variable and destroy that too :D

Trigger:
  • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Angle from (Position of (Triggering unit)) to (Target point of ability being cast)) degrees


Both (Position of (Triggering unit)) and (Target point of ability being cast) leaks here ... Put in variable and destroy ;)
 

ianu74

New Member
Reaction score
8
Trigger:
  • ((Position of TigersRoar) offset by 30.00 towards (Facing of TigersRoar) degrees)


Leaks... Need to put (Position of (TigersRoar)) into a variable :D (And of course destroy it ;))
I've set that as Temp_point, is that not okay?

Trigger:
  • Unit Group - Pick every unit in (Units within 300.00 of Temp_point matching ((((Matching unit) belongs to an enemy of (Owner of TigersRoar)) Equal to True) and (((Matching unit) is alive) Equal to True))) and do (Actions)


Leaks... Need to put that into a Unit-Group variable and then destroy it :D
Can you show me an example? Many thanks:)


Trigger:
  • Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at (Position of (Triggering unit)) facing (Angle from (Position of (Triggering unit)) to (Target point of ability being cast)) degrees


Both (Position of (Triggering unit)) and (Target point of ability being cast) leaks here ... Put in variable and destroy ;)
Same here, mind showing me an example.:confused:
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Create a point variable in variable editor then in action set it to the point then destroy it using call RemoveLocation(udg_your variable name)
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Here are some examples :D Hope you understand them ;)
Trigger:
  • Leaks Again
    • Events
    • Conditions
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • Set TempPoint2 = (Target point of ability being cast)
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TempPoint facing (Angle from TempPoint to TempPoint2) degrees
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call RemoveLocation(udg_TempPoint2)
      • -------- That was the first trigger! --------
      • Set TempPoint = (Position of TigersRoar)
      • Set TempPoint2 = (TempPoint offset by 30.00 towards (Facing of TigersRoar) degrees)
      • -------- Use those two for the points! --------
      • Set Temp_Group = (Units within 300.00 of TempPoint2 matching ((((Matching unit) belongs to an enemy of (Owner of TigersRoar)) Equal to True) and (((Matching unit) is alive) Equal to True)))
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Custom script: call RemoveLocation(udg_TempPoint2)
      • Unit Group - Pick every unit in Temp_Group and do (Actions)
        • Loop - Actions
          • Set TempPoint = (Position of (Picked unit))
          • Set TempPoint2 = (TempPoint offset by 30.00 towards (Facing of TigersRoar) degrees)
          • -------- Use those two for the points! --------
          • Custom script: call RemoveLocation(udg_TempPoint)
          • Custom script: call RemoveLocation(udg_TempPoint2)
      • Custom script: call DestroyGroup(udg_Temp_Group)
 
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