Jump to content

Trying to create a mission :D


Recommended Posts

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

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. biggrin.gif

Link to comment
https://gtaforums.com/topic/268246-trying-to-create-a-mission-d/#findComment-4070883
Share on other sites

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 biggrin.gif

 

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 by Covernant
Link to comment
https://gtaforums.com/topic/268246-trying-to-create-a-mission-d/#findComment-4070929
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.