GaryLazereyes 0 Share Posted October 18, 2015 Have been working on my first script as of late...I'm not making any calls to manually move the camera, but while I'm doing things like looking for and attacking NPC's, the camera seems to be automatically rotating to point at the NPC. I don't want this! How can I prevent any camera movement? Link to comment Share on other sites More sharing options...
Volta 183 Share Posted October 18, 2015 Yeah I don't like it either, but it's built into the client's interaction methods.. Link to comment Share on other sites More sharing options...
GaryLazereyes 0 Author Share Posted October 18, 2015 I had this question answered in chat - instead of using NPC.interact("Attack"), I now use getMouse().click(NPC). The interact call is what moves the camera. Link to comment Share on other sites More sharing options...
Nuclear Nezz 1996 Share Posted October 18, 2015 You can create your own interaction event using your own interaction settings. EntityDestination ed = new EntityDestination(getClient(), yourEntity);InteractionEvent ie = new InteractionEvent(ed); ie.interact("Attack", InteractionSetting.MOVE); Note that atm the MOVE setting doesn't do anything, but you can't give it an empty list or it'll use the default interact which rotates the camera. This will make the interaction not rotate the camera, though. Link to comment Share on other sites More sharing options...
Recommended Posts