Skip to content

ApiMobile

Represents a Python-accessible mobile (NPC, creature, or player character). Inherits entity and positional data from .

Type: ushort

Type: ushort

Type: sbyte

Type: int

Type: int

Type: int

Type: bool

Type: bool

Type: int

Type: int

Type: int

Type: int

Type: int

Type: int

Type: bool

Type: bool

Type: bool

Type: bool

Type: bool

Type: bool

Type: bool

Type: bool

Type: bool

Type: string

Get this mobiles direction as a string, for example: “west”, “east”, etc

Type: Notoriety

Type: bool

Type: ApiItem

Get the mobile’s Backpack item

Type: ApiItem

Get the mobile’s Mount item (if mounted)

Type: string

The Python-visible class name of this object. Accessible in Python as obj.__class__ .

No enums found.

(hue) Highlight this mobile and all of its equipped items with the given hue. The original hues are remembered so they can be restored. Call with None to restore the mobile and its equipped items to their original hues. Example:

mob.Highlight(0x0021)
mob.Highlight(None)

Parameters:

NameTypeOptionalDescription
hueushort?✅ YesThe hue to apply, or null to restore the original hues.

Return Type: void (Does not return anything)


(wait, timeout) Gets the mobile name and properties (tooltip text). This returns the name and properties in a single string. You can split it by newline if you want to separate them.

Parameters:

NameTypeOptionalDescription
waitbool✅ YesTrue or false to wait for name and props
timeoutint✅ YesTimeout in seconds

Return Type: string