detailed question on how to prevent pointleaks etc.

Discussion in 'World Editor Help' started by LordTalbot, Nov 1, 2016.

  1. LordTalbot

    LordTalbot New Member

    Ratings:
    +0 / 0 / -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 :)
     
  2. Accname

    Accname 2D-Graphics enthusiast

    Ratings:
    +1,544 / 4 / -4
    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.
     

Share This Page