Covernant Posted February 26, 2007 Share Posted February 26, 2007 I thought I'll start from something simple... but... I made this script but the car that follows stops right after some distance. :FPedMthread 'FPedM':FPedMLoopwait 0 msif 00103: is_actor $PLAYER_ACTOR near_3D_coord 2473.2644 -1694.4205 13.5151 within_3D_radius 4.0 4.0 1.0 flag 1 and_stopped_in_vehicleelse_jump @FPedMLoop:FPedM0Player.CanMove($PLAYER_CHAR) = False:FPedM1wait 0 if andModel.Load(#MAFBOSS)Model.Load(#MAFFA)model.Load(#ADMIRAL)model.Load(#TEC9)038B: load_requested_models if and Model.Available(#MAFBOSS) model.Available(#MAFFA) model.Available(#ADMIRAL) model.Available(#TEC9)else_jump @FPedMLoop wait 20 if Player.Defined($PLAYER_CHAR)else_jump @FPedMLoop03C0: get_actor $PLAYER_ACTOR vehicle_handle_to 3@1@ = car.Create(#ADMIRAL, 2473.3508, -1711.37, 13.8) 4@ = Actor.Create(4, #MAFFA, 2460.0, -1710.5294, 13.5245)0@ = Actor.Create(4, #MAFBOSS, 2461.7297, -1710.5294, 13.5245)wait 200679: put_camera_on_vehicle 3@ offset 0.5 -0.5 1.0 point_to_offset -2.0 -10.0 2.0 rotation 0.0 mode 2 07DD: set_actor 0@ temper_to 0060F: set_actor 0@ handcombat_accuracy_to 100.0 05CA: AS_actor 4@ get_in_vehicle 1@ timelimit 8000 passenger_seat 005CB: AS_actor 0@ get_in_vehicle 1@ driver_seat timelimit 8000wait 850001B2: give_actor 4@ weapon 32 ammo 20006E1: set_actor 0@ using_vehicle 1@ target_vehicle 3@ with_order 52 max_speed 80 traffic_flag 101B9: set_actor 4@ armed_weapon_to 32wait 1000 msPlayer.CanMove($PLAYER_CHAR) = true015A: restore_camera_to_defaultjump @FPedM2 So i though... Anyway to make cars more persistent. Like a clock work convoy. The following car is always behind you. I also tried limiting actor car speed. 00AD,: set_vehicle 3@ driver_max_speed_to 20 But that didn't work... yes i know i ask for a lot of help ;D Link to comment https://gtaforums.com/topic/268246-trying-to-create-a-mission-d/ Share on other sites More sharing options...
ceedj Posted February 26, 2007 Share Posted February 26, 2007 I THINK this might work for you; I've used it in my mod with good results. 07F8: car 1@ follow_vehicle 3@ radius 20.0 instead of 06E1. I'm not even entirely sure what that one's for (PL could 'splain it better). There's a TEMPER opcode? HAH! Friggin' awesome. Link to comment https://gtaforums.com/topic/268246-trying-to-create-a-mission-d/#findComment-4070883 Share on other sites More sharing options...
Covernant Posted February 26, 2007 Author Share Posted February 26, 2007 (edited) Yes now the following vehicle always follows... but... It doesn't drive straight. Like it starts then turns right against a wall... Oh and Thank you EDIT: LOL! I got the opcode 06E1 working... it came out that i have to but speed in float LOL! Silly me z.z Edited February 26, 2007 by Covernant Link to comment https://gtaforums.com/topic/268246-trying-to-create-a-mission-d/#findComment-4070929 Share on other sites More sharing options...
ceedj Posted February 26, 2007 Share Posted February 26, 2007 You could try lowering the radius. I think mine is set at 5.0 or so. You can also set traffic flags in case you're annoyed with the following car obeying the rules of the road. Link to comment https://gtaforums.com/topic/268246-trying-to-create-a-mission-d/#findComment-4070952 Share on other sites More sharing options...
Covernant Posted February 26, 2007 Author Share Posted February 26, 2007 Noh! I already got it fixed.. traffic flag is already 2. I just had to add .0 at the end of max speed. Now car follows nicely with opcode 06E1. Ill just keep updating that code. Link to comment https://gtaforums.com/topic/268246-trying-to-create-a-mission-d/#findComment-4070968 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