🏓MiniMap

Table to work with in-game minimap.

Ping(pos: Vector, type: Enum.PingType): nil

Name
Type
Description

pos

world position to ping

type

ping type

Pings on the minimap.


SendLine(pos: Vector, initial: boolean, clientside: boolean): nil

Name
Type
Description

pos

world position to draw line to

initial

boolean

start a new line, otherwise continue the last one

clientside

boolean

draw only for local player

Draws a line on the minimap.


SendLine(x: number, y: number, initial: boolean, clientside: boolean): nil

Name
Type
Description

x

number

x world position to draw line

y

number

y world position to draw line

initial

boolean

start a new line, otherwise continue the last one

clientside

boolean

draw only for local player

Draws a line on the minimap.


DrawCircle(pos: Vector, r [?]: integer, g [?]: integer, b [?]: integer, a [?]: integer, size [?]: number): nil

Name
Type
Description

pos

world position to draw circle

r [?]

integer

red color (default: 255)

g [?]

integer

green color (default: 255)

b [?]

integer

blue color (default: 255)

a [?]

integer

alpha color (default: 255)

size [?]

number

circle size (default: 800)

Draws a circle on the minimap.


DrawHeroIcon(unitName: string, pos: Vector, r [?]: integer, g [?]: integer, b [?]: integer, a [?]: integer, size [?]: number): nil

Name
Type
Description

unitName

string

unit name to draw icon. Can get it from NPC.GetUnitName

pos

world position to draw icon

r [?]

integer

red color (default: 255)

g [?]

integer

green color (default: 255)

b [?]

integer

blue color (default: 255)

a [?]

integer

alpha color (default: 255)

size [?]

number

icon size (default: 800)

Draws a hero icon on the minimap.


DrawIconByName(iconName: string, pos: Vector, r [?]: integer, g [?]: integer, b [?]: integer, a [?]: integer, size [?]: number): nil

Name
Type
Description

iconName

string

could get it from game\dota\pak01_dir.vpk (scripts\mod_textures.txt).

pos

world position to draw icon

r [?]

integer

red color (default: 255)

g [?]

integer

green color (default: 255)

b [?]

integer

blue color (default: 255)

a [?]

integer

alpha color (default: 255)

size [?]

number

icon size (default: 800)

Draws a icon on the minimap.


GetMousePosInWorld(): Vector

Returns world position the mouse on the minimap, if the mouse is not on the minimap, it will return (0,0,0).


IsCursorOnMinimap(): boolean

Returns true if the mouse is on the minimap.


GetMinimapToWorld(ScreenX: integer, ScreenY: integer): Vector

Name
Type
Description

ScreenX

integer

ScreenY

integer

Returns world position from minimap position. The same as GetMousePosInWorld, but you can pass any position on screen, not only mouse position.

Last updated