Hi! How are you guys?
I'm using Playmaker since some months ago, cause i don't know how to program in C#. And now after years and with a little bit of help of some tutorials on Youtube, i was finally able to create a prototype of a traffic system.
I got a car (Taxi) with a ''car engine'' script, which makes my vehicle follow waypoints who's is inside of a specific (Path-transform) called ''Path ....''
As i got multiple paths to choose from, i can change the current car Path-transfor for another one, making the vehicle turn into another street by following this new path.
The trigger is attached to the last node of a path.
But as the thing gets bigger and there are gonna be a lot of vehicles traveling at same time, i can't find a way to simplify the way the trigger choose which paths the car should follow.
(PATH 01) Is the transform which i can change to any other paths transforms which the car will start to follow the child waypoints...

There going to be another intersections and another types of vehicles of course.

The main problem is:
How can i make each trigger to change the collided car (Path transform) to the paths available on each intersection?
I tried to save each intersection available paths to a GameObject variable.
And then i would set the value to the (Car engine) >> Path transform obj to make the car follow the new path, but this is impossible.
I would like the ground trigger to detect wich car is passing by and change it's path transform, but i can't do it, because i can't change a script when it's not attached to an object. So i would have to make it manually for each vehicle, which is very hard. I know there's a simple way of doing that, but i really don't know how.
Any help would be very apprecciated!
Thank you!!