🎮Input
Last updated
Last updated
Vector
Returns world cursor position.
number
, number
Returns screen cursor position (x, y). See example.
number
, y: number
, w: number
, h: number
): boolean
Name | Type | Description |
---|---|---|
Returns true
if cursor is in rect.
number
, y0: number
, x1: number
, y1: number
): boolean
Returns true
if cursor is in bounds.
Excludes not visible, illusions and dead units.
Returns nearest unit to cursor.
Excludes not visible, illusions and dead heroes.
Returns nearest hero to cursor.
boolean
Returns true
if input is captured. e.g. opened console, chat, shop.
Enum.ButtonCode
): boolean
Returns true
if key is down.
Enum.ButtonCode
): boolean
This function will return `true` only once per key press.
Return true
if key is down once.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
x
number
x position
y
number
w
number
width
h
number
height
x0
number
y0
number
x1
number
y1
number
teamNum
team number. Could be get from Entity.GetTeamNum
teamType
team type to search relative to teamNum param
teamNum
team number. Could be get from Entity.GetTeamNum
teamType
team type to search relative to teamNum param
KeyCode
KeyCode