Jump to content

[HELP] traffic resource Distances


Imposter

Recommended Posts

If i'm getting you correctly: Most probably you could make traffic limit, where they can go or where they can and you should make that if there is distance from the player and a moving car you could use getDistanceBetween3D (( or something like this ))

Link to comment
If i'm getting you correctly: Most probably you could make traffic limit, where they can go or where they can and you should make that if there is distance from the player and a moving car you could use getDistanceBetween3D (( or something like this ))

What i meant to say was, the resource has a feature like this, and I've increased the value to about 1000, but it doesnt seem to change, when i go into the game, the cars drive to the end of my view distance (the default setting) which isn't supposed to happen, which makes me ask, how do i do it?

Link to comment

If you mean that vehicles cannot move outside sync range, then that's because only client has physics. You can simulate the movement of vehicle by repeatedly checking if vehicle has no syncer and putting it closer to the destination point. That's how I did it in my NPC high-level control resource. Such movement is less realistic but precision isn't necessary when no players are around.

Link to comment
If you mean that vehicles cannot move outside sync range, then that's because only client has physics. You can simulate the movement of vehicle by repeatedly checking if vehicle has no syncer and putting it closer to the destination point. That's how I did it in my NPC high-level control resource. Such movement is less realistic but precision isn't necessary when no players are around.

I sort of understand what you mean, but can you explain in more detail?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...