Jump to content

Open Community  ·  137 members

7 Days To Die

Need help developing my Free Third Person Camera Mod


Rakium

Recommended Posts

Hey there, I’m working on a mod to enable a third-person camera with Skyrim/Fallout 4-style movement. The goal is to have a camera that follows the player and freely rotates around the player character with mouse input, while the player moves relative to the camera’s direction: W moves away from the camera, S moves toward it, D moves right, and A moves left. Similar to Skyrim or Fallout 4's camera.

Also heavily inspired by the recent Player Camera Mod for Oblivion Remastered. But I've got to be honest, I've never made a mod like this and I have zero experience coding, but I've made decent progress using chat gpt.

The mod allows me to rotate the camera around the player character and I can walk forward using W, changing direction if I look in different directions with the mouse. This is the part that works correctly

Right now this is the problem I'm stuck on: When I press a ASD key (e.g., D), the character rotates to face the direction I intend based on the camera (e.g., right relative to the camera), which is correct, however, the character’s movement doesn’t align with this new facing direction. Instead, the character moves relative to its own body, not the camera’s direction. For example, if the character is facing right relative to the camera after pressing D, you expect them to move right (matching the camera’s right). But instead, they move towards the camera, strafing to the side.

I've attached a video to show how the mod currently behaves. I'm open to any types of suggestions and I don't mind sharing the source code or anything like that

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...