mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-23 02:56:02 +02:00
fixed mobs not pathing
- fixed roaming (todo: should probably move to attackstate too or something)
This commit is contained in:
parent
54af893570
commit
cbbfa4ed95
8 changed files with 31 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue