Add function to change orientation or set in front of some unit. It also send packet with move update, so client also will see that creature change orientation.
--HG-- branch : trunk
This commit is contained in:
@@ -1622,6 +1622,18 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
|
||||
SetOrientation(GetAngle(target));
|
||||
}
|
||||
bool isInBackInMap(Unit const* target, float distance, float arc = M_PI) const;
|
||||
void ChangeOrient(float fAngle, Unit* pUnit = NULL)
|
||||
{
|
||||
if(!this)
|
||||
return;
|
||||
|
||||
if(!pUnit)
|
||||
this->SetOrientation(fAngle);
|
||||
else
|
||||
this->SetInFront(pUnit);
|
||||
|
||||
this->SendMovementFlagUpdate();
|
||||
}
|
||||
|
||||
// Visibility system
|
||||
UnitVisibility GetVisibility() const { return m_Visibility; }
|
||||
|
||||
Reference in New Issue
Block a user