[DiscordArchive] what do you want? aggro or formation pathing?
[DiscordArchive] what do you want? aggro or formation pathing?
Archived author: Vel • Posted: 2025-06-24T21:16:38.659000+00:00
Original source
Okay, but relative to what?
Archived author: Tea • Posted: 2025-06-24T21:16:57.849000+00:00
Original source
to your selection
Archived author: Vel • Posted: 2025-06-24T21:17:13.469000+00:00
Original source
I stood literally at the leader (selection). Which was like... 1 yard from both ads.
Archived author: Vel • Posted: 2025-06-24T21:17:20.579000+00:00
Original source
And now they walk like 50 meters away.
Archived author: Vel • Posted: 2025-06-24T21:17:21.233000+00:00
Original source
Archived author: Vel • Posted: 2025-06-24T21:20:35.177000+00:00
Original source
So it should put in distance like between 0-1 aprox. I guess. But it put 49 and -42. Also no idea why the leader has distance of 148.
qrt(std::pow(chr->GetPositionX() - creature->GetPositionX(), 2.f) + std::pow(chr->GetPositionY() - creature->GetPositionY(), 2.f));Archived author: Vel • Posted: 2025-06-24T21:21:01.888000+00:00
Original source
```c++
float followDist = std:
qrt(std::pow(chr->GetPositionX() - creature->GetPositionX(), 2.f) + std::pow(chr->GetPositionY() - creature->GetPositionY(), 2.f));
```
It's just some black magic I can't comprehend.
Archived author: Tea • Posted: 2025-06-24T21:21:41.493000+00:00
Original source
thats just Position::GetExactDist2d