I have to simulate a crowd of humans and cars who are AI agents: they have goals, so they are moving in my city to accomplish goals.
My agents are hooked up to events (similar to C# events): I randomly generate an event, such as “alarm fire”, but I don’t want to notify all agents in the city, but just those agents who are close to the position where fire has started (I need to optimise my code, since I have 500+ agents in the scene).
Is it possible?