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

    3. Suggestions

Turret Mode


Big_Mitch_Baker
 Share

Recommended Posts

Big_Mitch_Baker

Ok, I've been working on this for a while and can't seem to get any headway. I'm trying to have it so the player can freeaim and shoot at enemies from the back of a dirtbike while a PED drives the dirtbike. This is the code I have so far:

 

(The weapon and vehicle models were all loaded at the beginning of the script not shown here due to size)

 

 

[email protected] = Actor.Create(CivMale, #SPECIAL01, 1170.89, -2034.563, 69.0078)Actor.Angle([email protected]) = [email protected] = Car.Create(#SANCHEZ, 1163.485, -2044.945, 69.0078)Car.Angle([email protected]) = 98.00687: $PLAYER_ACTOR0464: put_actor $PLAYER_ACTOR into_turret_on_car [email protected] at_car_offset 0.0 -0.5 1.8 position 2 shooting_angle_limit 360.0 with_weapon 320858: set_player $PLAYER_CHAR scan_horizon_to_angle 270.0 rotation_speed 300.00114: set_actor $PLAYER_ACTOR car_weapon 32 ammo_to 900072A: put_actor [email protected] into_car [email protected] driverseat wait 100 08C6: set_actor [email protected] stay_on_bike 1  Player.WantedLevel($PLAYER_CHAR) = 0Camera.SetBehindPlayerCamera.Restore_WithJumpCut

 

 

The game simply crashes when turret mode is supposed to start. If I add "0430: put_actor $PLAYER_ACTOR into_car [email protected] passenger_seat 0" the game doesn't crash, however the player simply sits frozen on the bike. What am I doing wrong here? Any help is greatly appreciated. (no cleo plz)

Edited by Big_Mitch_Baker
Link to comment
Share on other sites

 

Ok, I've been working on this for a while and can't seem to get any headway.  I'm trying to have it so the player can freeaim and shoot at enemies from the back of a dirtbike while a PED drives the dirtbike.  This is the code I have so far:

 

 

you must first give the actor the weapon but why in turret mode instead driveby code?

 

//code below don't work in turret mode//first give player_actor a smg, then put him into car (driver or passenger seat)0713: actor $PLAYER_ACTOR driveby_actor -1 car -1 point 0.0  0.0  0.0 radius 300.0 8 0 firing_rate 100

 

Edited by ZAZ
Link to comment
Share on other sites

Big_Mitch_Baker

lol, wow that was simple...Didn't think 0713 functioned like that

(Thought if I used it on a non-ped that it would fire at the target on it's own, like in a cutscene) notify.gif

 

Thanks man, works great icon14.gif

Link to comment
Share on other sites

There's a fundamental difference between putting a player in 'turret mode' and 'driveby mode' in SA, however, the nicest one for normal land vehicles is indeed still 'driveby mode'. smile.gif

SsZgxdL.png

Inactive in GTA/R* title modification indefinitely pursuant to a court order obtained by TTWO. Good job acting against modding!

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.