Hi, Guys!
Is there a possibility to get object reference by its location?
This method would be very helpful if we need to make some changes to objects or actors, that is placed in the known location, but don’t use get all actors of class, because if the same class, the “ForLoop” will be a very long way to check the location of each object.
For example, if I have a foliage, and need to delete some of them during the game process. Then I’m saving the changes.
After that, some additional player is connecting to the game, and he needs to load the list of deleted trees. In this case, sure, I can check all the trees locations, and compare it’s to the saved list of the deleted trees locations, and just remove them on the client side.
But it forces me, to check all the trees in the map, as much times as much I have deleted trees. I afraid, that it will be a too much heavy process for the CPU.
But the process may be very very light if I can get trees only by their location. In this case, I will check the list of the locations of the deleted trees, only once. And also, I don’t need to check all the trees in the map.
Thank You in advance for the reply, hope that there is some method, that I didn’t found yet.