NotAvailableToday Posted January 31, 2010 Share Posted January 31, 2010 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 :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 Link to comment https://gtaforums.com/topic/439670-camera-move/ Share on other sites More sharing options...
ZAZ Posted January 31, 2010 Share Posted January 31, 2010 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 :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 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 More sharing options...
NotAvailableToday Posted February 1, 2010 Author Share Posted February 1, 2010 Sorry, I dont understand anything Maybe a little example (:? But thanks anyway Link to comment https://gtaforums.com/topic/439670-camera-move/#findComment-1059762099 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