Jump to content

Put camera on car


Recommended Posts

I dont know the integers to make it free, I want to make it so that we can enter a tank as a passenger but the camera coords dont work sad.gif I want to make it like you were driving a car and have free rotation sad.gif

 

 

{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN----------0000::0wait 00AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 0@ closest_ped_to [email protected](1@)if056E:   car 0@ defined jf @0if0137:   car 0@ model == #RHINOjf @0if00E1:   player 0 pressed_key 8jf @0if0205:   actor $PLAYER_ACTOR near_car 0@ radius 12.0 12.0 12.0 flag 0jf @0Car.StorePos(0@, 2@, 3@, 4@)0679: put_camera_on_car 0@ with_offset 0.0 0.0 0.0 rotation 0.0 0.0 0.0 0.0 2 Actor.PutAt($PLAYER_ACTOR, 2@, 3@, 4@)046C: 5@ = car 0@ driverPlayer.CanMove($PLAYER_CHAR) = False:1wait 0if 00E1:   player 0 pressed_key 15jf @1Car.StorePos(0@, 6@, 7@, 8@)Camera.Restore_WithJumpCutActor.PutAt($PLAYER_ACTOR, 6@, 7@, 8@)Car.RemoveReferences(0@)Actor.RemoveReferences(5@)Player.CanMove($PLAYER_CHAR) = Truewait 1000jump @0   

 

Link to comment
https://gtaforums.com/topic/463825-put-camera-on-car/
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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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