BoosterPL Posted September 20, 2013 Share Posted September 20, 2013 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. Link to comment
0 BoosterPL Posted September 28, 2013 Author Share Posted September 28, 2013 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. Link to comment
0 Discord Moderators Zango Posted September 30, 2013 Discord Moderators Share Posted September 30, 2013 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. Link to comment
0 BoosterPL Posted October 6, 2013 Author Share Posted October 6, 2013 And is there any efficient way to create bus lines? Link to comment
0 myonlake Posted October 6, 2013 Share Posted October 6, 2013 You can use the vehicle nodes from the GPS resource and make a route with that. Link to comment
Question
BoosterPL
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.
Link to comment
4 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now