skatefilter5 Posted October 10, 2017 Share Posted October 10, 2017 (edited) I was making a street race for the 8 drivers, to race across Los Santos, with objects like ramps, I have problems with drivers hit to the wall and not reserving, and the drivers ignores more waypoints is there a way to fix it? I assign all the driver into one AS pack and set it on loop, whenever these drivers pass more than 10 waypoints they go back to the starting waypoints, and not reversing, I have dum drivers. I don't know how DYOM makes it endless waypoints for the driver without ignore paths more than 10 and can reverse when they crash to the wall. I tried at least 1 driver and it still do the same thing, ignore waypoints. What is the limit for AS pack anyway? 0615: define_AS_pack_begin [email protected]: AS_actor -1 drive_car -1 to -1399.9968 -588.8387 1059.4263 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1464.1903 -589.6142 1058.646 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1513.0107 -594.8481 1056.1873 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1523.1503 -604.2274 1056.0874 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1523.8932 -613.6641 1055.0573 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1514.082 -644.4407 1050.197 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1518.2037 -666.89 1051.114 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1525.1027 -691.2701 1055.2524 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1521.432 -702.4279 1055.7461 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1513.0724 -712.1246 1054.4247 speed 30.0 2 model #NULL 5 //---Actor ignores extra paths05D1: AS_actor -1 drive_car -1 to -1467.8555 -734.757 1050.0984 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1467.2982 -735.0522 1050.1515 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1427.5807 -740.6136 1055.21 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1384.9669 -742.6732 1051.9281 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1332.3932 -740.7082 1054.4803 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1297.8243 -736.6279 1049.3242 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1291.2211 -717.3831 1054.2113 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1304.592 -692.1364 1056.3473 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1331.0325 -674.8593 1055.9453 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1382.551 -665.2627 1055.9905 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1460.6582 -660.8931 1054.8276 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1488.8619 -639.7817 1053.3491 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1464.4072 -612.0679 1054.3567 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1429.1605 -619.6572 1051.119 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1424.5424 -645.2435 1052.5977 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1445.6469 -684.8134 1053.6095 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1447.2539 -706.4541 1054.5122 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1439.1478 -716.0108 1055.8077 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1425.797 -719.6119 1056.0988 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1338.9297 -717.0709 1055.8342 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1330.319 -707.8829 1055.8956 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1335.3574 -696.1902 1055.9502 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1344.8141 -690.4016 1055.7429 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1382.8523 -685.137 1053.7909 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1400.12 -676.5093 1052.5504 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1404.5564 -666.402 1051.9691 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1403.3026 -648.483 1051.8267 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1392.4393 -625.745 1051.975 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1382.118 -619.938 1052.0236 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1365.6362 -622.0045 1052.8323 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1306.0431 -650.451 1055.8232 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1291.939 -645.7662 1056.2178 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1287.7822 -631.0732 1055.9567 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1312.4398 -606.2023 1055.9108 speed 30.0 2 model #NULL 505D1: AS_actor -1 drive_car -1 to -1343.5087 -593.3559 1056.0251 speed 30.0 2 model #NULL 50616: define_AS_pack_end [email protected]: set_AS_pack [email protected] loop 10618: assign_actor [email protected] to_AS_pack [email protected]061B: remove_references_to_AS_pack [email protected] Is 5 on the left is for actor to reverse when getting stuck to the wall? Edited October 11, 2017 by skatefilter5 Link to comment Share on other sites More sharing options...
deltaCJ Posted October 13, 2017 Share Posted October 13, 2017 (edited) Okay. First of all instead of bombarding the AS pack function with Drive-To's just use Seeman's car path creator. This is the easiest way to make routes. Second of all you shouldn't use this script to make the cars drive. Poor scripting. Send full script Edited October 13, 2017 by deltaCJ Sloth- 1 Link to comment Share on other sites More sharing options...
skatefilter5 Posted October 17, 2017 Author Share Posted October 17, 2017 Okay. First of all instead of bombarding the AS pack function with Drive-To's just use Seeman's car path creator. This is the easiest way to make routes. Second of all you shouldn't use this script to make the cars drive. Poor scripting. Send full script were do i find semman's car path creator? it only exist SAMP car recorder Link to comment Share on other sites More sharing options...
Sanmodder Posted December 20, 2017 Share Posted December 20, 2017 such a large package will never work well for youmaximal in such a package can be 4 or 5 commandsI do not do such packages oftenI can not professionally say that to youonce I was doing a mod hot coffe, it is a package that has 4 and 5 max commands and repeats itselfbut you can separate such packages into several4 by 5 commandsbut that also does not work, waiting is the most important thingsee0615: define_AS_pack_begin 15 @0605: actor -1 perform_animation "/////////" IFP "///////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 60000605: actor -1 perform_animation "///////" IFP "/////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 60000605: actor -1 perform_animation "//////" IFP "//////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 60000605: actor -1 perform_animation "//////" IFP "//////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 550000643: set_AS_pack 15 @ loop 10618: assign_actor 7 @ to_AS_pack 15 @061B: remove_references_to_AS_pack 15 @///////////// next0615: define_AS_pack_begin 22 @0812: AS_actor -1 perform_animation "//////" IFP "///////" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 1 time 6000 // versionB0605: actor -1 perform_animation "///////" IFP "/////////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 60000605: actor -1 perform_animation "///////" IFP "//////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 60000605: actor -1 perform_animation "//////" IFP "////" framedelta 4.0 loop 1 lockX 0 lockY 0 lockF 0 time 550000643: set_AS_pack 22 @ loop 10618: assign_actor $ PLAYER_ACTOR to_AS_pack 22 @061B: remove_references_to_AS_pack 22 @And you know why waiting is the most important thingbecause how the driver has to go to the destination as the destination changes all the timeand goes to the walland after that why create such a packagehow can you loop with meters to doabout something like that19 @ = 0: labelwait 0repeatwait 019 @ + = 1until if 19 @> 600ACA: show_text_box "99999999999999999" /// testCar.DriveTo (1 @, 2037.861, -1611.046, 13.3828)Car.DriveTo (10 @, 2037.861, -1611.046, 13.3828)19 @ = 0repeatwait 019 @ + = 1until if 19 @> 60Car.DriveTo (1 @, 2037.861, -1611.046, 13.3828) //// speed 35.0 2 model # NULL 5Car.DriveTo (10 @, 2037.861, -1611.046, 13.3828) //// speed 35.0 2 model # NULL 519 @ = 0repeatwait 019 @ + = 1until if 19 @> 60Car.DriveTo (1 @, 2006.949, -1613.008, 13.3828) //// speed 35.0 2 model # NULL 5Car.DriveTo (10 @, 2006.949, -1613.008, 13.3828) //// speed 35.0 2 model # NULL 519 @ = 0wait 100jump @label // return to beginingend_thread{and after that improve the intelligence of the vehicle and the actor with these opcodes00AE: set_car 1 @ traffic_behaviour_to 2Car.SetDriverBehaviour (1 @, FollowRoad)053F: set_car 1 @ tires_vulnerability 0Car.SetImmunities (1 @, 1, 1, 1, 1, 1)0587: enable_car 1 @ validate_position 0077C: clear_actor 3 @ acquaintance 4 to_all_pedtypes // see ped.dat039E: set_actor 3 @ locked 1 while_in_car0526: set_actor 3 @ stay_in_car_when_jacked 109F6: set_actor 3 @ unjackable_through_driver_seat 0072F: enable_car 1 @ stuck_check_distance 0.5 time 4000 and_restore_if stuck 1 flipped 1 unk_place_on_road_properly 1 to_path 7 // extended 03CC0190: add_car 1 @ to_flipped_check // 6 max} 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