Jump to content
RAGE Multiplayer Community

I can not change the view mp.cameras.new("gameplay")


Rishat7c
 Share

Recommended Posts

I want to make the player look in a certain direction, but I can not do this with the 'gameplay' camera, and I do not need to create a new 'default'. How to be

this will only work with the new 'default' camera, if you use the 'gameplay' camera, you can’t set the position for viewing. Help pls

mp.events.add("setPlayerCameraInPos", (x, y, z) => {
    let newCamera = mp.cameras.new("gameplay"); // get the forwarding vector of the direction you aim with the gameplay camera as Vector3

    // newCamera.setRot(x, y, z, 2); // Does not work
    newCamera.pointAtCoord(x, y, z); // Does not work
    newCamera.setActive(true);
    mp.game.cam.renderScriptCams(true, false, 0, true, false);
});
Link to comment
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
 Share

  • Recently Browsing   0 members

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