kagamihiiragi17
Community Developer
- Joined
- Jun 24, 2014
- Messages
- 873
instead of adding custom movement handling for troublesome vendors, maybe you can change movement to til los, then move to a point generated between us?
Code:MathEx.GetPointAt(o.Location, 6f, MathEx.NormalizeRadian(MathHelper.CalculateHeading(Core.Me.Location, o.Location)));
or actually, to make sure it's on the mesh you might need to move to a random spot within 1f...
Is there any way to get the nearest point on the mesh from a point?
btw, I just noticed you use an interact distance of 5 instead of the max interact distance of 7, was 7/6 causing issues for you? :S
edit: oh duh, you could just change
or would that also stop while not in los?Code:CommonBehaviors.MoveAndStop(ret => Poi.Current.Location, 1f, true to CommonBehaviors.MoveAndStop(ret => Poi.Current.Location, 5f, true
If that's the case, you could use false while !los and then true
I don't believe movement is the problem, it should be able to navigate to all the vendors just fine. The issue afaik is when a FATE completes when the bot is interacting with the vendor, which messes with completing the repair. I'm honestly not sure what the best thing to do to avoid that is. Still thinking of a solution.