Ordush 185 Posted April 23, 2018 Share Posted April 23, 2018 (edited) Hey all Does anyone know if it's possible to use the hitbox when using Vector3? I use this to backtrack from mobs, but if the mob has a big hitbox, it'll cause problems. Because Target Position does not include the mobs hitbox? var tar = ObjectManager.Target; Vector3 newPos = new Vector3(tar.Position.X + posX, tar.Position.Y + posY, tar.Position.Z); The code below gives the distance between me and target hitbox. ObjectManager.Target.GetDistance - ObjectManager.Target.CombatReach - ObjectManager.Me.CombatReach I also use the Vector3 to check TraceLine, but this also doesn't check far enough on mobs with big hitboxes. (!TraceLine.TraceLineGo(ObjectManager.Target.Position, newPos)) Hope any of this made any sense, otherwise please ask. :) I'd love to get help on this! public static double PosX(int angle) { return 0 + 18 * System.Math.Cos(angle * System.Math.PI / 180); } public static double PosY(int angle) { return 0 + 18 * System.Math.Sin(angle * System.Math.PI / 180); } The number "18" is the range between the vector and the mob. it has to be 18 in order to be 8 yards from a mob with a big hitbox (Raptors in Un'Guru, is an example). I could make a variable that changed number based on target hitbox size, but i don't know how to get that either. :P Edited April 23, 2018 by Ordush Link to comment https://wrobot.eu/forums/topic/9185-use-outer-hitbox-for-vector3/ 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