Rename "SetPosition" to "UpdatePosition".
Replace CreatureRelocation in scripts with new Creature::SetPosition.
This commit is contained in:
@@ -493,7 +493,7 @@ void npc_escortAI::SetEscortPaused(bool on)
|
||||
|
||||
bool npc_escortAI::SetNextWaypoint(uint32 pointId, float x, float y, float z, float orientation)
|
||||
{
|
||||
me->SetPosition(x, y, z, orientation);
|
||||
me->UpdatePosition(x, y, z, orientation);
|
||||
return SetNextWaypoint(pointId, false, true);
|
||||
}
|
||||
|
||||
@@ -516,7 +516,7 @@ bool npc_escortAI::SetNextWaypoint(uint32 pointId, bool setPosition, bool resetW
|
||||
if (waypoint.id == pointId)
|
||||
{
|
||||
if (setPosition)
|
||||
me->SetPosition(waypoint.x, waypoint.y, waypoint.z, me->GetOrientation());
|
||||
me->UpdatePosition(waypoint.x, waypoint.y, waypoint.z, me->GetOrientation());
|
||||
|
||||
CurrentWP = WaypointList.begin();
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user