Rishat7c Posted April 17, 2020 Posted April 17, 2020 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); });
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