detailed question on how to prevent pointleaks etc.

LordTalbot

New Member
Reaction score
0
Hi,
i've read a tutorial on how to prevent leaks. I will ask my question on a strict example.
I have read that points (unit locations etc.) leak
So the shown solution is:
set Temp_Point = position of triggering unit
issue order unit to do something targeting temp_point
Custom script: call RemoveLocation (udg_Temp_Point)

Is it enough to have one global variable of type point (Temp_Point) variable to use this method in all my triggers? This means that the engine always works function after function right?

im pretty much refering to emjlrs tutorial on world-editor-tutorials (http://world-editor-tutorials.thehelper.net/cat_usersubmit.php?view=27219)

thank you :)
 

Accname

2D-Graphics enthusiast
Reaction score
1,462
Yes that will work out fine.
But sometimes you might need more than just one point simultaneously. In those cases you will need another point variable.
 
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