[Solved]: Subtract from Array Question

I want to teleport someone to the furthest array value (in Global A and they will all be vectors), but I don’t want to include values that align with any values in Global B. I know how to do furthest value in array, but I don’t know how to remove all value in B from the values in A.

Example:
Global A Array
0:(0,0,0)
1:(1,1,1)
2:(2,2,2)
3:(3,3,3)

Global B Array
0:(8,8,8)
1:(5,5,5)
2:(2,2,2)
3(7,7,7)

If (2,2,2) were the furthest, you would not teleport to it because it is a value in the B array. So what I’m asking is how do you remove all values in B from A. Thanks!

I assume you’re using “sorted array” for getting the furthest vector

For the array it asks you to sort, use “remove from array”, then set that array to variable A and the value you’re removing to variable B.

It will take global variable A, remove all values in B and then sort it.

I know it’s super late but whatevs

1 Like

Nah it’s all good, thanks for help!