Double point

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Say i do this : set point1 = position of (what ever), set point2 = point1, then remove point2. Are both points removed or what?
 

Ticer

New Member
Reaction score
2
Removing the points with something like this?
Trigger:
  • Custom script: call RemoveLocation( udg_Point2 )

No, only the 2nd point would be removed if you do have them as separate variables.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
So it wil work like that or do i hav to remove point1 aswell
 

Builder Bob

Live free or don't
Reaction score
249
Why answer when you don't know?

A point is an object.
A variable can point to objects.
RemoveLocation() removes the object the variable is pointing towards.

In your example both variables are pointing to the same object.
Using RemoveLocation() on either variables will destroy that object, and both variables will now point to a non-existing point object.


Short answer: You will only need to use RemoveLocation() once.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Thx and i know how to remove points and know they leak if not removed but this was a mystery to me thx :D
 
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