Simple memory leak

bajaist

Member
Reaction score
4
When i set:
Set Temp_Point[1] = (Position of (Target destructible of ability being cast))

Do i need to write [1] in custom script, like:
Custom script: call RemoveLocation (udg_Temp_Point[1])

Thanks
 

jig7c

Stop reading me...-statement
Reaction score
123
a step further
if you have many of those things...
temp_point[1]
temp_point[2]
temp_point[3]
temp_point[etc..]



use call RemoveLocation (udg_temp_point[bj_forLoopAIndex]) instead of removing them one by one...
 

tommerbob

Minecraft. :D
Reaction score
110
Question. Could you also use [GetForLoopIndexA()]? I've been using that for custom loop stuff and it seems to work just fine.
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
Yes, that works fine, but because [ljass]GetForLoopIndexA()[/ljass] is a function that does nothing but return the value of [ljass]bj_forLoopAIndex[/ljass], you may as well use that variable directly. ;)
 
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