I am working on a little project where i have a bunch of empties scattered around my level for some data that i want to access from a script when the player or some other object is near.
I need to access the three nearest empties and get some data that i’ve stored in their game object properties.
I chose this way of storing data since i need to vary the density of data on different parts of my game and having precise control over their position in the 3d view is vital.
the data is going to be static so storing them in a data structure on game launch for fast access later is a good idea.
the object names of these empties start with “LP_”.
Below is an example of which object’s properties i would like to be able to access (from a script owned by the monkey, in this case)
Thank you very much in advance.