Jump to content
  • 0

NPC Paths


BoosterPL

Question

Posted

Hello!

I've got a question about NPCs system in MTA. Is there any way to prevent NPSc from stopping when there are no players around them? Let's take a simple bus route for an example. I can't find any way to make an NPC drive around the map.

4 answers to this question

Recommended Posts

  • 0
Posted

Let me put it this way.

Is there any chance for us to see packets recording for an NPC? It would be really usefull for creating train drivers and delivery systems for example. At the moment we need a real player to sync NPCs.

  • 0
  • Discord Moderators
Posted

Considering MTA's current architecture I doubt it.

The server has no physical understanding of the world. It only distributes data from remote clients.

If you map out the train tracks you can calculate how far the train was supposed to go.

Using interpolation (interpolateBetween) you can get an approximate location from your calculated value with little math.

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...