Skip to content

MovementManager ยป Facing

Namespace: Mayo.Manager.Movement
Denpendies: GC.MM


To control the character's orientation.


void Face(IUnit)
void Face(IPlayer)
void Face(IModel)
void Face(UInt128 GUID)
Example
var ClosestUnit = GC.OM.GetClosestUnit();
if (ClosestUnit != null)
{
    GC.MM.Face(ClosestUnit);
    Log.Write($"Faced: {ClosestUnit.Name} | Distance: {ClosestUnit.Distance3D}");
}

void Face(Vector3 Position)

Aligns with the specified value. (Not recommended.)

Example
var ClosestUnit = GC.OM.GetClosestUnit();
if (ClosestUnit != null)
{
    GC.MM.Face(ClosestUnit.Position);
    Log.Write($"Faced: {ClosestUnit.Name} | Distance: {ClosestUnit.Distance3D}");
}

void Face(float Rotation)

Aligns with the specified value. (Not recommended.)

Example
var ClosestUnit = GC.OM.GetClosestUnit();
if (ClosestUnit != null)
{
    GC.MM.Face(ClosestUnit.Rotation);
    Log.Write($"Faced: {ClosestUnit.Name} | Distance: {ClosestUnit.Distance3D}");
}