Skip to content

ObjectManager ยป Models

Namespace: Mayo.Manager.Objects
GameClient: GC.OM


You can find more info's about the IModel properties here:


IModel CreateModel(object ModelType)

Accepts the following ModelType's: IPlayer, IUnit or IGameObject
Returns IModel.


List<IModel> GetModels()

Returns a list of all IPlayer's, IUnit's and IGameObject's.

Example
foreach (var Model in GC.OM.GetModels())
    Log.Write($"{Model.Name} | DisplayID: {Model.DisplayID}%");

IModel? GetClosestModel()

Returns the closest IModel or null.


IModel? GetClosestModel(int ModelID)

Returns the closest IModel or null.