GaryLazereyes 0 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?
Volta 184 Posted October 18, 2015 Yeah I don't like it either, but it's built into the client's interaction methods..
GaryLazereyes 0 Author 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.
Nuclear Nezz 2104 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.