Do specified regions with an offset cause memory leaks?

Never_Quit

New Member
Reaction score
16
Do specified regions with an offset say

Trigger:
  • UpSpawn
    • Events
      • Player - Player 1 (Red) Presses the Up Arrow key
      • Player - Player 2 (Blue) Presses the Up Arrow key
      • Player - Player 3 (Teal) Presses the Up Arrow key
      • Player - Player 4 (Purple) Presses the Up Arrow key
      • Player - Player 5 (Yellow) Presses the Up Arrow key
      • Player - Player 6 (Orange) Presses the Up Arrow key
      • Player - Player 7 (Green) Presses the Up Arrow key
      • Player - Player 8 (Pink) Presses the Up Arrow key
      • Player - Player 9 (Gray) Presses the Up Arrow key
      • Player - Player 10 (Light Blue) Presses the Up Arrow key
      • Player - Player 11 (Dark Green) Presses the Up Arrow key
      • Player - Player 12 (Brown) Presses the Up Arrow key
    • Conditions
    • Actions
      • Unit - Create 1 iGeneralUnit for Neutral Victim at ((Center of rUpRegions[(Player number of (Picked player))]) offset by (1700.00, 0.00)) facing 180.00 degrees
      • Unit - Change color of (Last created unit) to iUpColor
      • Unit - Order (Last created unit) to Move To ((Center of rUpRegions[(Player number of (Picked player))]) offset by (-500.00, 0.00))


cause memory leaks?
 

Azlier

Old World Ghost
Reaction score
461
Yes. Those offset lines leak two locations each.
 

lindenkron

You can change this now in User CP
Reaction score
102
Not sure I understand your question.. but.. This leaks:
Code:
Actions
        Unit - Create 1 iGeneralUnit for Neutral Victim at [B]((Center of rUpRegions[(Player number of (Picked player))])[/B] offset by [B](1700.00, 0.00))[/B] facing 180.00 degrees
        Unit - Change color of (Last created unit) to iUpColor
        Unit - Order (Last created unit) to Move To [B]((Center of rUpRegions[(Player number of (Picked player))]) [/B]offset by [B](-500.00, 0.00))[/B]

And according to Azlier, apparrently also the offset is a Leak. Offset by -500 of The variable point location.
 

Foresector

Member
Reaction score
16
Code:
        Set SpawnPoint = (Your region with polar offset)
      Unit - Create 1 iGeneralUnit for Neutral Victim at (SpawnPoint)
        Custom script:   call RemoveLocation (udg_SpawnPoint)

You want to format your trigger like this
 

lindenkron

You can change this now in User CP
Reaction score
102
Code:
        Set SpawnPoint = (Your region with polar offset)
      Create (whatever) at Spawnpoint
        Custom script:   call RemoveLocation (udg_SpawnPoint)

You want to format your trigger like this

Actually, if offsets leaks I think it would be something like this:
Trigger:
  • Actions
    • Set TempPoint2 = (Center of (Playable map area))
    • Set TempPoint1 = (TempPoint2 offset by (0.00, 0.00))
    • Unit - Create 1 Footman for Neutral Victim at TempPoint1 facing 180.00 degrees
    • Custom script: call RemoveLocation (udg_TempPoint1)
    • Custom script: call RemoveLocation (udg_TempPoint2)
 
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