Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Forum Support

    3. Suggestions

How to let Guards drive Car follow me?


fengyeblade
 Share

Recommended Posts

HAHA i finished it!!

 

my guard will drive car follow me now...... HOHO

 

Last testing...

 

later will put it here....

 

 

Edited by fengyeblade
Link to comment
Share on other sites

 

How to let guards drive a car follow me?....

 

my english is so poor.. So hope friends don't deride me, and give me some help. thanks...

I have writing a script mod with scripthookdotnet(http://www.gtaforums.com/index.php?showtopic=392325).

When niko in a car, script will count number of guards where outside , and make a car, let they in to it.  Appointment a guard be driver(P1).

But they can't drive follow niko....

 

...

 

Guards always in to the car and stay... sePed[0] don't drive to niko....

There are several things that could cause problems. Is sePed[0] always the driver?

You use a position as target in DriveTo, which means that they will drive to this point, but not follow you. Or do you call the task repeatedly? This may also be a problem.

Use the current vehicle of the player as target and a high speed setting instead. this way you have to call the task only once. (i didn't try the DriveTo function with a vehicle as target, yet. Maybe it doesn't work. But it should.)

 

 

sePed[0].Task.ClearAll();sePed[0].Task.AlwaysKeepTask = true;sePed[0].Task.DriveTo(seVeh,myVeh, 70.0F, false,true);

 

Link to comment
Share on other sites

Thanks HazardX

 

 

I have a var to save my script state. when Niko is in the car...the state is enable..

SEPED[0] always is the driver.. and and myVeh is not null, i can make sure that.

 

I think script will call that function again and again , finally the guard's car will follow me....

 

 

use my code , some times ( mayby 10%), the guard's car start move... but just a little distance, may be 5~8 meter.

 

 

Or you have some other idears to make guard's car follow me?

Link to comment
Share on other sites

Or you have some other idears to make guard's car follow me?

when you call the code i wrote above only ONCE when niko enters a car, does it work?

Link to comment
Share on other sites

HAHA i finished it!!

 

my guard will drive car follow me now...... HOHO

 

Last testing...

 

later will put it here....

 

 

Edited by fengyeblade
Link to comment
Share on other sites

A greeeeat thing you re making... i was dreaming bout it !

 

I have no skill in script but i ll forward it to all my friends... I NEED THIS WORK !

 

=)

 

Thanx for time and energy.

Link to comment
Share on other sites

i cant help you with the script. but i would like to see that mod, too smile.gif

So if you at some time need betatesters or anything...just pm

Link to comment
Share on other sites

iriedreadlock23

ive made bodyguard script that enables guards to follow in any vehicle. they can drive with you, if they cant fit into a vehicle, they will search for another, and drive to your exact position. they stay in car until you call they out. they also have couple of speech actions. if you have question about it, let me know. i can send you complete script.

Link to comment
Share on other sites

ive made bodyguard script that enables guards to follow in any vehicle. they can drive with you, if they cant fit into a vehicle, they will search for another, and drive to your exact position. they stay in car until you call they out. they also have couple of speech actions. if you have question about it, let me know. i can send you complete script.

Yes id like.... =)

 

 

Just to say, Rappo has been banned from here, thats why he cannot answer.

I asked him if we could get access to his source files .

 

dont know if it can help somone... i hope... (as usually... im always full of hope in fact... but for governments, cant know why.)

 

 

 

Cheeeeeeers

 

 

Dam

Link to comment
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
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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