Point removal and point array question

Solu9

You can change this now in User CP.
Reaction score
216
If I have a point array variable with four numbers (Point_A [1], Point_A [2], Point_A [3], Point_A [4]) and set Point_A [1] to somewhere in the map.

Will "Custom script: call RemoveLocation (udg_Point_A[1])" work?

Furthermore. If I set several, to all, of the array points in a trigger will the simple custom script "Custom script: call RemoveLocation (udg_Point_A)" work?
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
1 should work, 2 wont, but you can use a FEI 1-array size for it.
 

Solu9

You can change this now in User CP.
Reaction score
216
So in case I use several of the points I need a custom script for each?

Like:
Custom script: call RemoveLocation (udg_Point_A[1])
Custom script: call RemoveLocation (udg_Point_A[2])
Custom script: call RemoveLocation (udg_Point_A[3])

Or do you mean 2 or more points will leak if used in the same trigger?
 

Dameon

"All the power in the world resides in the eyes"
Reaction score
127
meant 1 as in first question about the array and 2 as for the 2nd custom script question.
So to removed them you just do
call RemoveLocation (udg_Point_A[1])
to do the whole array place it in a loop and
call RemoveLocation (udg_Point_A[GetForLoopIndexA()])
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top