Jump to content

How to lock camera ?


John Wick

Recommended Posts

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:

Edited by RuneMaker4657
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

  • 1 year later...

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
Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
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.

  • Recently Browsing   0 members

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