mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
Add some Follow stuff to lua
You can also disallow following code from allowing the NPC to run if they're far enough away
This commit is contained in:
+2
-1
@@ -1647,7 +1647,8 @@ void Mob::AI_Process() {
|
||||
if (distance >= follow_distance) {
|
||||
int speed = GetWalkspeed();
|
||||
|
||||
if (distance >= follow_distance + 150) {
|
||||
// maybe we want the NPC to only walk doing follow logic
|
||||
if (GetFollowCanRun() && distance >= follow_distance + 150) {
|
||||
speed = GetRunspeed();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user