Big_Mitch_Baker Posted December 9, 2010 Share Posted December 9, 2010 (edited) 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 December 9, 2010 by Big_Mitch_Baker Link to comment Share on other sites More sharing options...
ZAZ Posted December 10, 2010 Share Posted December 10, 2010 (edited) 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 December 10, 2010 by ZAZ CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Big_Mitch_Baker Posted December 11, 2010 Author Share Posted December 11, 2010 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) Thanks man, works great Link to comment Share on other sites More sharing options...
NTAuthority Posted December 12, 2010 Share Posted December 12, 2010 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'. 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now