🔧Engine
Last updated
Last updated
boolean
Returns true
if the game is in progress.
boolean
Returns true
if the shop is open.
string
, reset [?]
: boolean
): nil
Name | Type | Description |
---|---|---|
Add item to quick buy list.
string
, contextPanel [?]
: string
): boolean
Name | Type | Description |
---|---|---|
Run a JS script in the panorama context. Return true
if the script was executed
successfully. JS
documentation
string
): nil
Execute a console command.
string
, volume [?]
: number
): nil
Play a sound with a specific volume.
boolean
Returns true
if the player can accept the match.
string
Returns the current game directory. (e.g. dota 2 beta
)
string
Returns the current cheat directory.
string
Returns the current level name. (e.g. maps/hero_demo_main.vpk
)
string
Returns the current level name without the extension and folder. (e.g. hero_demo_main
)
integer
): nil
Accept match.
integer
, g: integer
, b: integer
, a [?]
: integer
, text: string
): nil
Print a message to the dota console.
integer
Returns the current MMR.
integer
Returns the current MMR. Works better than Engine.GetMMR
.
Must be called from the game thread. Ex: OnNetUpdateEx, OnGCMessage, not OnFrame or on
initialization.
nil
Executes script system reload.
nil
Brings the game window to the forefront if it is minimized. Use this function to make the game window the topmost window.
boolean
Returns true
if the player is in a lobby.
string
Returns the cheat version.
string
): integer|nil
Returns hero ID by unit name.
string
): string|nil
Returns hero display name by unit name.
integer
): string|nil
Returns hero name by ID.
Enum.UIState
Returns current UI state.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
item_name
string
The name of the item to quick buy. (e.g. blink
, relic
)
reset [?]
boolean
Reset the quick buy list. (default: true)
script
string
The script to run.
contextPanel [?]
string
The name of the panel to run the script in. (default: "Dashboard")
command
string
The command to execute.
sound
string
The sound to play. Could find in sounds
folder in pak01_dir.vpk
file.
volume [?]
number
The volume of the sound. (default: 0.1)
state
integer
DOTALobbyReadyState
r
integer
Red value.
g
integer
Green value.
b
integer
Blue value.
a [?]
integer
Alpha value. (default: 255)
text
string
Text to print.
unitName
string
Can be retrieved from NPC.GetUnitName
unitName
string
Can be retrieved from NPC.GetUnitName
heroID
integer