Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

How to remove used asset from an array?

Prime pathing level.
Is there a way to use a fake traps’s coordinates and then remove this particular fake trap from an array of fake traps so my hero, while using findNearest(fake trap), would not go back and forth, instead going straight to the next fake trap?