Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
fengyeblade

How to let Guards drive Car follow me?

Recommended Posts

fengyeblade

HAHA i finished it!!

 

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

 

Last testing...

 

later will put it here....

 

 

Edited by fengyeblade

Share this post


Link to post
Share on other sites
HazardX

 

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);

 

Share this post


Link to post
Share on other sites
fengyeblade

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?

Share this post


Link to post
Share on other sites
HazardX
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?

Share this post


Link to post
Share on other sites
fengyeblade

HAHA i finished it!!

 

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

 

Last testing...

 

later will put it here....

 

 

Edited by fengyeblade

Share this post


Link to post
Share on other sites
BlackDomina

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.

Share this post


Link to post
Share on other sites
diboze

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

Share this post


Link to post
Share on other sites
fengyeblade

i will try and try .....again and again....

Share this post


Link to post
Share on other sites
fengyeblade
@fengyeblade :

Did you try to talk with Rappo (bodyguards.asi's maker ?)

 

http://www.gtagaming.com/forums/showthread...d=1#post1943609

 

hope we ll find a solution !

I try to connect to Rappo to study.... but he not reply me...

Of course, i must thanks Rappo and HazarhX...

Your work is very great..

 

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites
BlackDomina
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 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.