John Wick Posted October 6, 2017 Share Posted October 6, 2017 Hello guys, how can i lock the camera rotation in onStart ? I using minimap to walk and sometimes when camera automatic rotate, the position to walk in minimap hide. Quote Link to comment Share on other sites More sharing options...
Juggles Posted October 6, 2017 Share Posted October 6, 2017 (edited) Event event = new Event(); event.setCamera(false) execute(event); Edited October 6, 2017 by Juggles Quote Link to comment Share on other sites More sharing options...
John Wick Posted October 6, 2017 Author Share Posted October 6, 2017 14 minutes ago, Juggles said: Event event = new Event(); event.setCamera(false) execute(event); Got cannot resolve the symbol 'setCamera' Quote Link to comment Share on other sites More sharing options...
John Wick Posted October 6, 2017 Author Share Posted October 6, 2017 (edited) 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. Edited October 6, 2017 by RuneMaker4657 Quote Link to comment Share on other sites More sharing options...
kamik Posted October 7, 2017 Share Posted October 7, 2017 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. Won't setting the camera be very very suspicious if this is done every time the client updates? Quote Link to comment Share on other sites More sharing options...
acec Posted May 9, 2019 Share Posted May 9, 2019 (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 May 9, 2019 by acec Found solution Quote Link to comment Share on other sites More sharing options...