Jump to content

Camera Move ?


NotAvailableToday

Recommended Posts

NotAvailableToday

Hey all,

got a question, I want to make a script like press B then the camera is above the player, now when you press W the camera moves forward

S backwards and so on. But it won´´t work

 

Here´s the script wink.gif

 

 

 

:BOOM_1wait 0 msif0AB0:  key_pressed 66                                                            jf @BOOM_101B4: set_player $PLAYER_CHAR can_move 0 04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 25.0 015F: set_camera_position 1@ 2@ 3@ rotation 0.0 0.0 0.0 0160: set_camera_point_at 1@ 2@  0.0  mode 2 wait 0 ms:BOOM_2wait 0 msif 0AB0:  key_pressed 87jf @BOOM_2068D: get_camera_position_to $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3 000B: $TEMPVAR_FLOAT_1 += 3.0015F: set_camera_position $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3  rotation 0.0 0.0 0.0 ....

 

 

Thanks wink.gif

Link to comment
https://gtaforums.com/topic/439670-camera-move/
Share on other sites

Hey all,

got a question, I want to make a script like press B then the camera is above the player, now when you press W the camera moves forward

S backwards and so on. But it won´´t work

 

Here´s the script wink.gif

 

 

 

:BOOM_1wait 0 msif0AB0:  key_pressed 66                                                            jf @BOOM_101B4: set_player $PLAYER_CHAR can_move 0 04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 25.0 015F: set_camera_position 1@ 2@ 3@ rotation 0.0 0.0 0.0 0160: set_camera_point_at 1@ 2@  0.0  mode 2 wait 0 ms:BOOM_2wait 0 msif 0AB0:  key_pressed 87jf @BOOM_2068D: get_camera_position_to $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3 000B: $TEMPVAR_FLOAT_1 += 3.0015F: set_camera_position $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3  rotation 0.0 0.0 0.0 ....

 

 

Thanks wink.gif

don't use same coord/variables for cam position and cam target

look in zhis topic for exemples: Camera coding

Link to comment
https://gtaforums.com/topic/439670-camera-move/#findComment-1059760906
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.