lousy 1 Share Posted July 13, 2020 I'm making a script that needs to interact with entities in a crowded area. Generally when I play through this area I rotate the camera to face the objects before I click them, because the objects all have the same name right clicking them would really only be possible for a bot. As it stands the bot only rotates the camera every so often so in many cases its right clicking on the objects a fair bit, making me think if this was run for any amount of time I'd probably end up getting banned pretty easily. I'd like to have the script: check if the object I want is being drawn on top (like there is nothing else obscuring it, z buffer and all that) if its not then rotate the camera so that the object is the one in front and it can be interacted with via left click. if it is on top, do nothing I saw some answers to a different question mention the text in the top left that would appear if the object I wanted was being hovered over, but I couldn't find that in the docs and I think that might fail if all the objects have the same name. I have also tried using `rotateToEntity` (or whatever that Camera function is) but that seems to only work if the object is outside of the viewport, not if its obscured by another object. Link to comment Share on other sites More sharing options...
lousy 1 Author Share Posted July 13, 2020 Also if anyone has any generic antiban tips, I'm also open to hearing them. Link to comment Share on other sites More sharing options...
aestheticfc 0 Share Posted July 28, 2020 Try seeing what the pitch and yaw values are when the camera has a clear sight of your target object. Then you can create a method to adjust the camera based on random pitch/yaw values within the bounds of what you deemed is a clear angle, and only then interact with the object. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.