I’m wanting to know the best way to maintain interactions between a large number of different objects. For example, between characters, pets, house objects, vehicles, npcs, etc.
I’m currently using RenderStepped and only doing checks on distance between pets. However I want it to check for any item that can have an interaction with it, however I feel RenderStepped could cause problems in the future and I’d like to try avoid using the loop.
Example like this, where a number of interactions are visible on screen at once (with one being E and the others click based)
This only shows furniture interactions, but there’s also the same thing with pets and other players. So how can I manage all these at once, without having several loops checking each individual item type (players, pets, etc.)