Sign in to follow this  

Resetting to default camera

Recommended Posts

Posted (edited)

Hey everyone

I've been trying to convert a gamemode I've coded a long while ago from GTA:N to RAGE:MP everything is going smooth so far until I got to the camera part

So basically I've just created a camera 

let newCam ='default', new mp.Vector3(0, 0, 0), new mp.Vector3(0, 0, 0), 40);
newCam.pointAtCoord(10, 0, 0);
newCam.setActive(true);, false, 0, true, false);


And set it to active, it worked fine, but after I'm done I want to reset the camera which means I want to deactivate  this new camera and activate the old gameplay one which focuses on the player and gives you free mouse movement

The way I used to do it on GTA:N was simply like this:



I've looked everywhere I can't seem to find a solution to this, do I have to manually set the camera behind the player? If so how do I give the player free mouse movement?


Edited by moadi

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.