Wapak 0 Share Posted April 4, 2020 Hi everyone, I am developing a combat script but it is often clicking bones and Npcs behind walls and buildings. I noticed that there is no method available in the api to check if the Entity is visible. Is there a workaround for this? Does anyone know if Jagex can detect that you're clicking through walls and buildings? Would it increase the likelihood of the account being banned? Thanks Link to comment Share on other sites More sharing options...
Defiled 406 Share Posted April 4, 2020 (edited) if(npc.isOnScreen()) npc.interact(); I'd recommend that you explore the API. you can also rotate to the npc by doing the following: getCamera().rotateToEntity(npc); Edited April 4, 2020 by Defiled Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now