xdanishgamerz 1 Share Posted February 18, 2016 I just went back to scripting after taking a year long break. What I want to know is there is some way I can make the camera move while i am wood cutting for example. Was thinking about something like If (getLocalPlayer().isAnimationg()){ Random_camera_movemnt_n_shit(); Sleep(Calculations.random (3000, 6000)); } Any ideas how to do this ? Link to comment Share on other sites More sharing options...
Diddy 265 Share Posted February 18, 2016 getCamera() do a Calculation.random or something before moving the camera so that it doesn't always move it. Link to comment Share on other sites More sharing options...
xdanishgamerz 1 Author Share Posted February 18, 2016 What should I do if I want it to rotate to somewhere random? Link to comment Share on other sites More sharing options...
Pandemic 2714 Share Posted February 19, 2016 What should I do if I want it to rotate to somewhere random? getCamera().rotateTo(Calculations.random(2400), Calculations.random(getClient().getLowestPitch(), 384)); Link to comment Share on other sites More sharing options...
xdanishgamerz 1 Author Share Posted February 20, 2016 getCamera().rotateTo(Calculations.random(2400), Calculations.random(getClient().getLowestPitch(), 384)); Thanks a lot is 384 the maximum pitch? Link to comment Share on other sites More sharing options...
tzhaarown 1 Share Posted February 23, 2016 getCamera().rotateTo(Calculations.random(2400), Calculations.random(getClient().getLowestPitch(), 384)); Introduce a constant for maximum pitch in the API? Link to comment Share on other sites More sharing options...
Dogerina 330 Share Posted February 23, 2016 Introduce a constant for maximum pitch in the API?in some areas the maximum pitch is different Link to comment Share on other sites More sharing options...
TheAppFoundry 11 Share Posted August 10, 2017 getCamera().rotateTo(Calculations.random(2400), Calculations.random(getClient().getLowestPitch(), 384)); PRO as always Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.