🏓MiniMap
Table to work with in-game minimap.
Pings on the minimap.
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
number
, y: number
, initial: boolean
, clientside: boolean
): nil
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
Vector
, r [?]
: integer
, g [?]
: integer
, b [?]
: integer
, a [?]
: integer
, size [?]
: number
): nil
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
string
, pos: Vector
, r [?]
: integer
, g [?]
: integer
, b [?]
: integer
, a [?]
: integer
, size [?]
: number
): nil
unitName
string
unit name to draw icon. Can get it from NPC.GetUnitName
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
string
, pos: Vector
, r [?]
: integer
, g [?]
: integer
, b [?]
: integer
, a [?]
: integer
, size [?]
: number
): nil
iconName
string
could get it from game\dota\pak01_dir.vpk (scripts\mod_textures.txt).
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
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
boolean
Returns true
if the mouse is on the minimap.
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