- Joined
- Jun 23, 2020
- Messages
- 14
Hey, I'm having issues doing something very basic. I want to check wether a unit is moving by saving its location, then every 0.1s check if its a certain distance from that location and if so, saving the new one, and repeat. etc. Naturally this involves saving a whole bunch of points, so of course I want to remove them. But when I do, the code no longer works
This code runs the way I want it, but it doesnt clean up all of the points...
But when I try to remove the tempPoint variable, no matter where i put the command, the code no longer works and the distance (real value) returned from line 2 becomes really big
Here's one example that doesnt work:
I really don't get this, ive removed similar points before with no problem, can anyone help me here?
Thanks
This code runs the way I want it, but it doesnt clean up all of the points...
But when I try to remove the tempPoint variable, no matter where i put the command, the code no longer works and the distance (real value) returned from line 2 becomes really big
Here's one example that doesnt work:
I really don't get this, ive removed similar points before with no problem, can anyone help me here?
Thanks
Attachments
Last edited: