thehambone Posted September 26, 2015 Share Posted September 26, 2015 Hey all,I'm having trouble positioning the camera in GTA III. I want to position the camera in front of the player (as if the "look behind" button is being pressed). I'm not quite sure how to do this though. I've tried messing with opcodes 015F: set_fixed_camera_position and 03C8: set_camera_in_front_of_player but to no avail.Any suggestions? I should also mention that the x,y,z coordinates for the camera position cannot be hardcoded and the player will not be moving when this camera mode is enabled. Meet the GTA 3 players who've spent a decade playing pass-the-pad to 100% the game - GamesRadar GTA:LCS Save Editor - Supports Android, iOS, PS2, and PSP saves! GTA3 Save Editor - Big update in the works! Link to comment Share on other sites More sharing options...
xNCx Posted September 29, 2015 Share Posted September 29, 2015 Something tells me that opcode 03C8 is incorrect described. Are you sure that the player is not moving? I've done in my camera mods something like this and it was possible to walk: :Loopwait 10get player coordinate [email protected] [email protected] [email protected] offset 0.0 3.0 0.0camera set position [email protected] [email protected] [email protected] point at $player_actorjump @Loop I hope this might help you somehow. The corresponding opcodes should be easy to find. Link to comment Share on other sites More sharing options...
thehambone Posted September 30, 2015 Author Share Posted September 30, 2015 (edited) Thanks for the reply! Are you sure that the player is not moving? I've done in my camera mods something like this and it was possible to walkWell, what I meant was while this camera mode is being used, my script is set to not allow the player to move. I said this so we wouldn't run into the problem of how to ensure the camera remained directly in front of the player while he was being moved around. Your code definitely did help though. I don't know what I was trying to do before, but what you provided worked, so thank you! I also updated my SCM.INI file, so that gave me some more up-to-date opcode descriptions. Here is my code for anyone who is curious: 0054: get_player_position $PLAYER store_to [email protected] [email protected] [email protected]@ += 3.00171: set_player $PLAYER z_angle_to 0.0015F: set_camera_position [email protected] [email protected] [email protected] rotation 0.0 0.0 0.00157: camera_on_player $PLAYER 15 2 Edited September 30, 2015 by thehambone Meet the GTA 3 players who've spent a decade playing pass-the-pad to 100% the game - GamesRadar GTA:LCS Save Editor - Supports Android, iOS, PS2, and PSP saves! GTA3 Save Editor - Big update in the works! 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