Skip to content

MovementManager ยป Interact

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


For interacting with objects and units.


async Task InteractAsync(IUnit)
async Task InteractAsync(IPlayer)
async Task InteractAsync(IModel)
async Task InteractAsync(IGameObject)
async Task InteractAsync(UInt128 GUID)
Example
var ClosestUnit = GC.OM.GetClosestUnit();
if (ClosestUnit != null)
{
    await GC.MM.InteractAsync(ClosestUnit);
    Log.Write($"Interacted with: {ClosestUnit.Name}");
}

async Task InteractAsync(int DisplayID)

Interacts with the specified "Display ID".

Example
var ClosestUnit = GC.OM.GetClosestUnit();
if (ClosestUnit != null)
{
    await GC.MM.InteractAsync(ClosestUnit.DisplayID);
    Log.Write($"Interacted with: {ClosestUnit.Name}");
}

void Interact(IUnit)
void Interact(IPlayer)
void Interact(IModel)
void Interact(IGameObject)
void Interact(UInt128 GUID)
void Interact(int DisplayID)