Tonie Posted January 31, 2022 Share Posted January 31, 2022 (Context: So i making street racing mod for gta sa what make raceing more like NFS/FH but is not very important.) I want to make opponents do shortcut in one place instead off taking super long way. How it's look shows pic below I use car.driveto to give ai checkpoint is there some opcode to set bechavior to ignore roads Link to comment Share on other sites More sharing options...
EAZYJ Posted January 31, 2022 Share Posted January 31, 2022 (edited) I haven't done any race so far, I'm no expert but try these opcodes maybe: 01AD: car [email protected] sphere 0 near_point [email protected] [email protected] radius 6.0 6.0 05D6: clear_scmpath 05D7: add_point_to_scmpath 372.0 -120.1 1000.5 05D7: add_point_to_scmpath 372.0 -120.1 1000.5 06BB: set_actor -1 drive_car [email protected] speed 10.0 along_SCM_path Edited January 31, 2022 by EAZYJ Link to comment Share on other sites More sharing options...
Tonie Posted January 31, 2022 Author Share Posted January 31, 2022 24 minutes ago, EAZYJ said: I haven't done any race so far, I'm no expert but try these opcodes maybe: 01AD: car [email protected] sphere 0 near_point [email protected] [email protected] radius 6.0 6.0 05D6: clear_scmpath 05D7: add_point_to_scmpath 372.0 -120.1 1000.5 05D7: add_point_to_scmpath 372.0 -120.1 1000.5 06BB: set_actor -1 drive_car [email protected] speed 10.0 along_SCM_path I have used scmpatch before using Car.drive to but it makes car ai very stupid(not brakin or turniong when obstacles Link to comment Share on other sites More sharing options...
ZAZ Posted January 31, 2022 Share Posted January 31, 2022 no, there isn't such a code you must write conditional checks to decide if the car drive to next forward check point or right to next checkpoint in which case should he take the short route? CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Tonie Posted January 31, 2022 Author Share Posted January 31, 2022 1 hour ago, ZAZ said: you must write conditional checks to decide if the car drive to next forward check point or right to next checkpoint in which case should he take the short route? I know about it i want to change it when [email protected](next checkpoint variable)=9 but i want to know is there some opcode what making ai go in straight to next checpoint so i can make code like this(not actual code) if [email protected]=9 then XXXX:car [email protected] drive_straight into x z y else Car.DriveTo([email protected], x, z, y) end Link to comment Share on other sites More sharing options...