May 15, 20178 yr - How to implement 'Click here to continue' in your script? For example when you reached a level. - What is the best way to turn your camera when npc is not visible? camera.toEntity(target) ?
May 15, 20178 yr npc.interact("Attack") uses interactionEvent and will turn the camera if the npc is not visible.
May 15, 20178 yr if (api.dialogues.isPendingContinuation()){ api.dialogues.clickContinue(); Passes pending continuation (the dialog) And for get closest NPC/Entity/Object api.getObjects().closest("Object").interact("???"); EG api.getObjects().closest("Spinning wheel").interact("Spin"); api.log("Interacting with Spinning wheel.."); Edited May 15, 20178 yr by Void
May 15, 20178 yr Author 3 minutes ago, Void said: if (api.dialogues.isPendingContinuation()){ api.dialogues.clickContinue(); Passes pending continuation (the dialog) And for get closest NPC/Entity/Object api.getObjects().closest("Object").interact("???"); EG api.getObjects().closest("Spinning wheel").interact("Spin"); api.log("Interacting with Spinning wheel.."); Thanks for the info!
Create an account or sign in to comment