ZkillCatIV Posted September 23, 2016 Share Posted September 23, 2016 First of all thanks for taking your time to read this. Back to the question i wanted to make a script that when someone logsIn the camera targeted an object and follow the object as the object moved instead of targeting the player then when the object stoped that the player spawned there where the object stoped. My idea with this was to make a mini intro. But i can not get the setCameraTarget to go to the object and i tried the setCameraMatrix to the object and it works but when i move the object the camera does not follow i already tried with a setTimer and a function but i cant get it to work Note : i dont have a script to post Thanks again for reading this i hope you can help me ☺ Link to comment
Bonsai Posted September 23, 2016 Share Posted September 23, 2016 You will need to do that using the "onClientRender", or better "onClientPreRender" if mouse movement possible, events. setCameraMatrix only sets the camera to a static position, so you need to update it on every frame. Link to comment
ZkillCatIV Posted September 23, 2016 Author Share Posted September 23, 2016 3 minutes ago, Bonsai said: You will need to do that using the "onClientRender", or better "onClientPreRender" if mouse movement possible, events. setCameraMatrix only sets the camera to a static position, so you need to update it on every frame. So i have a login panel on my server,if i do "onClientPreRender" will it be trigger when the player joins also ? Because i wanted to be trigger when the player LogIn Link to comment
ZkillCatIV Posted September 23, 2016 Author Share Posted September 23, 2016 OKAY i already fixed the camera but can somebody explain me the interpolateBetween ? Please 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