Jump to content

gnag mebers to follow you on bikes not hop on bikes with you


nqcowboy

Recommended Posts

well when you recruit gang mebers by pointing your gun at them and pressing y they immediatly follow you around and shoot at what you shoot, when you get in the car and press g they getinto the car with you, i was wondering if you could get into car and make them get into a car and follow you as opposed to getting in your car

Link to comment
Share on other sites

well when you recruit gang mebers by pointing your gun at them and pressing y they immediatly follow you around and shoot at what you shoot, when you get in the car and press g they getinto the car with you, i was wondering if you could get into car and make them get into a car and follow you as opposed to getting in your car

so you want to make your homies walk while you drive? thats a bit mean isn't it? It's possible, but a waste of time tbh...

Link to comment
Share on other sites

It would take a special command key (since G is built in) and the "special recruits" would look for any available car in a radius of 100 after player is driving a car. Then you would program their car to move while you are moving following your car. The speed would be a math problem and the "special recruits" would disembark when you leave your vehicle. Is that about right?

Follow player car but don't collide. "Untested code"

 
00AA: store_car $player_car position_to 8@ 9@ 10@
if 
	00EE:   actor $special_recruit 0 near_point 8@ 9@ radius 20.0 20.0 in_car
then
	wait 0
else 
//You could leave them in the dust if you are in a hurry 
//so you would need math to estimate your speed and pass it on to their car.
	05D1: AS_actor $special_recruit drive_car -1  to 8@ 9@ 10@ speed 30.0 0 model #NULL 2
end

This code will make a ped jack a car:

//You need a key assigned to come here
:TEST

//Snags a ped between 9 and 14 units away from you.
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset  0.0  9.0  0.0
08E5: get_actor_in_sphere 1@ 2@ 3@ radius 5.0 handle_as 24@
0665: get_actor 24@ modelID 25@ 
0247: load_model 25@ 

//Got to replace the ped with its evil twin...
:TEST101
0001: wait  250 ms
if
0248:   model 25@  available
jf @TEST101

//Evil Twin creation and seek any car within 50 radius
:TEST102
04C4: store_coords_to 4@ 5@ 6@ from_actor 24@ with_offset 0.0  0.0  -1.0
0172: 9@ = actor 24@ z_angle
009B: destroy_actor 24@
01C2: remove_references_to_actor 24@ 
009A: 24@ = create_actor_pedtype  8 model 25@  at 4@ 5@ 6@
0173: set_actor 24@ z_angle_to  9@
0687: clear_actor 24@ task
0639: AS_actor 24@ rotate_to_actor $PLAYER_ACTOR
0001: wait  1000 ms
073E: get_car_in_sphere 4@ 5@ 6@ radius 50.0 model -1 handle_as 29@
05CB: AS_actor 24@ enter_car 29@ as_driver -1 ms 

004E: return

Now all you need to do is tell evil twin to wait there until you jump into a car and they can follow.

JAB B)

Edited by JAB HacksouL
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...