Jump to content

How to lock camera ?


Recommended Posts

Posted
On 10/6/2017 at 11:50 AM, RuneMaker4657 said:

Nah, still dont know how to lock this shit... but i wrote this in one onLoop method and allways before player click to walk this code set the camera to the right position.


getCamera().movePitch();
getCamera().moveYaw();

Problem solved.:sanic:

Won't setting the camera be very very suspicious if this is done every time the client updates?

  • 1 year later...
Posted (edited)

What is the current method for locking camera in onStart()? I have been working on my first script and have the logic down but the camera movement causes missclicks once in awhile. although playing around with the API i haven't gotten the camera to lock on start. 

 

Edit: Was able to lock it by creating custom InteractionEvents for interactions.

 

Edited by acec
Found solution

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
  • Recently Browsing   0 members

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