OSRS Plugin API
    Preparing search index...

    Interface MousePickingHelper

    This interface is used to support handling mouse selection behavior, such as providing information on currently hovered entities.

    interface MousePickingHelper {
        GetPickedEntityTypecodes(): Typecode[];
    }
    Index

    Methods

    • Returns a list of entities currenty hovered by the mouse (Locs, Objs, NPCs, Players).

      Returns Typecode[]

      List of entities hovered by the mouse

      for _, entity in pairs(osrs.Engine.MousePickingHelper:GetPickedEntityTypecodes()) do
      osrs.print(entity:getName())
      end