October 6, 20178 yr 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.
October 6, 20178 yr Event event = new Event(); event.setCamera(false) execute(event); Edited October 6, 20178 yr by Juggles
October 6, 20178 yr Author 14 minutes ago, Juggles said: Event event = new Event(); event.setCamera(false) execute(event); Got cannot resolve the symbol 'setCamera'
October 6, 20178 yr Author 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, 20178 yr by RuneMaker4657
October 7, 20178 yr 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?
May 9, 20196 yr 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, 20196 yr by acec Found solution
Create an account or sign in to comment