Hey,
When working on my traffic lights I came up with a problem I wasn’t thinking about earlier. So my problem is that I made a light script which for the lights was very easy. Then I created a trigger on the ground and when the car comes it will brake. So my problem is that I want the car to stop right under the traffic light not a couple of feet earlier or later.
I get smith like this
[car] —>-------->----->- |traffic light
so what I want is that it stops right in front
[car] - |traffic light
and not sometimes
[car]----|traffic light
or so
[car]–|traffic light
so the - is supposed to represent the distance between the car object ([car]) and the traffic light (|traffic light)
and I always want the car to stop at the same distance