mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
fixed mobs not pathing
- fixed roaming (todo: should probably move to attackstate too or something)
This commit is contained in:
@@ -131,8 +131,13 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
|
||||
}
|
||||
}
|
||||
|
||||
public bool AtPoint(Vector3 point)
|
||||
public bool AtPoint(Vector3 point = null)
|
||||
{
|
||||
if (point == null && path != null && path.Count > 0)
|
||||
{
|
||||
point = path[path.Count - 1];
|
||||
}
|
||||
|
||||
if (distanceFromPoint == 0)
|
||||
return owner.positionX == point.X && owner.positionZ == point.Z;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user