Jaapio Posted March 1 Share Posted March 1 (edited) Hi, I'm still quite new to scripting in GTA San Andreas and have a question if this is possible using only stock San Andreas. In a cutscene I want to have CJ get in a taxi/cab and watch the cab drive to it's destination (so the player can get to see and know a bit about the map). But I want to have the cab obey traffic EG not run red lights and not crash into other vehicles, without having to script all the separate stops and turns. Is this something that is possible with the stock scripting or am I going to have to write my own plugin? Edited March 1 by Jaapio Made title more clearly reflect that this is for GTA San Andreas Link to comment Share on other sites More sharing options...
ZAZ Posted March 1 Share Posted March 1 (edited) Yes, it's possible with stock scm codes. Stop at traffic lights is standard behavior of car driving. There's a code to make the car ignore traffic lights The route is given by car paths And so the problem beginns, because the car drive along specific paths instead that route which you want, if you just give a destination. There's a huge net of paths, it's a construct of many single paths and you don't know or don't see where each path beginns and end. So a car drive script can be a very annoying job The script codes allows also to let the car ignore the path and let it drive where you want. But in this case you have to give many destinations and checks to let the car drive on many small routes Also the car can stuck anywhere Another solution: You can record a route which you drive, go, fly or what ever and create a carrec path a file of GTASA\data\Paths\carrec.img And then let the car drive on carrec path The plane fly is done by this method, when you check in at airport Disadvantage: the car on carrec path is immun to other vehicles Edited March 1 by ZAZ Jaapio 1 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Jaapio Posted March 1 Author Share Posted March 1 Hi Zaz, Thanks again for coming to the rescue so quickly. Are you a full time gtaforums member? Both options aren't exactly what I am looking for I want to keep my mod as close to the stock gta San Andreas, so that if people want to use their favorite mods they can just do so. As opposed to if I decide to put in (for example) silent's asi loader and some other libraries, people will be stuck with that and things might break if they want to put in their own mods that require another asi loader. But since my own map editor is coming along nicely I guess I could add in a functionality for it to generate a script to make a car drive a certain path through traffic. Since I will be in control I can make it generate the script in such a manner that if the vehicle gets stuck the cutscene will fade out and skip to the next relevant part and fade in again. Link to comment Share on other sites More sharing options...
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