ski
Well-Known Member
- Joined
- Feb 12, 2010
- Messages
- 3,720
Another Question: What about a "sight-detection"? I mean that the bot could detect whether there is a obstacle in sight or not. So that Casters no more cast when the mob gets behind a obstacle.. would it be hard to code? I mean there will be a Mesh which nows where obstacles are an where not. So HB just needs to draw a "sight-line" between my char and the foe. Would be very interesting for PvP, because humans are thinking more flexible as NPCs^^ I think you've all heard about Athene : The best Pala of the World? xD He said that you just need to go "shff round a corner" and the cast will be broken xD
There is a function for that, bool WoWUnit.LineOfSight.
Example:
Code:
if (Me.GotTarget && !Me.CurrentTarget.InLineOfSight)
{
slog("Battleground: " + Me.CurrentTarget.Name + " out of Line of Sight, blacklisting for 3 seconds");
Blacklist.Add(Me.CurrentTarget.Guid, TimeSpan.FromSeconds(3));
Me.ClearTarget();
Lua.DoString("PetFollow()");
lastGuid = 0;
}