StefanAlmighty Posted October 4, 2015 Share Posted October 4, 2015 How can I set the camera directly behind a player? So when the player teleports, the camera is adjusted directly behind them. Link to comment
KariiiM Posted October 4, 2015 Share Posted October 4, 2015 Click on it setCameraTarget() Link to comment
Noki Posted October 5, 2015 Share Posted October 5, 2015 You will only need to use setCameraTarget if you happen to change the target at any point. Otherwise, you can use something like setCameraMatrix in conjunction with getPedBonePosition and onClientRender to create a custom camera. Link to comment
KariiiM Posted October 5, 2015 Share Posted October 5, 2015 Yeah,i believe he want a camera show behind the player after teleporting, so with setCameraTarget it will return the camera behind him. As noki said, if you want a custom camera you've to use setCameraMatrix function file it with 6 arguments click on the function and read more about it, you can also returns it with setCameraTarget. setCameraTarget setCameraMatrix Link to comment
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