Input
IsConsoleOpen
Input.IsConsoleOpen()
[EN] Used to check if console is active. [RU] Используется для проверки активности консоли.
IsChatOpen
Input.IsChatOpen()
[EN] Used to check if chat is open. [RU] Используется для проверки, открыт ли чат.
ForceCursor
Input.ForceCursor(1)
[EN] Used to force show/hide cursor. [RU] Используется для принудительного отображения / скрытия курсора.
GetCursorPosition
function getCursorPosition()
{
var cursor_pos = Input.GetCursorPosition();
Cheat.Print( "Cursor pos X is: " + cursor_pos[0] + "\n");
Cheat.Print( "Cursor pos Y is: " + cursor_pos[1] + "\n");
}
Cheat.RegisterCallback("Draw", "getCursorPosition")
// This function will print your cursor position x and y in in-game console.
[EN] Returns an array object with X, Y for cursor position. [RU] Возвращает объект массива с координатами X, Y в качестве позиции курсора.
IsKeyPressed
if (Input.IsKeyPressed(0x01))
{
Cheat.ExecuteCommand("say hello");
}
[EN] Returns boolean value whether or not a key was pressed. [RU] Возвращает логическое значение независимо от того, была нажата клавиша.
Last updated
Was this helpful?