πŸͺ›utils

get_choked_commands

utils.get_choked_commands(): number

Returns the number of choked commands.

get_clipboard

utils.get_clipboard(): string

Returns from the clipboard.

set_clipboard

utils.set_clipboard(text: string)

Name
Type
Description

text

string

text

Sets the text to the clipboard.

get_active_key

utils.get_active_key(key: number): boolean

Name
Type
Description

key

number

Key to check

Returns true, if the button is active.

get_cursor_position

utils.get_cursor_position(): vector_2d

Returns the current mouse position.

set_cursor_visible

utils.set_cursor_visible(visible: boolean)

Name
Type
Description

visible

boolean

cursor visible

Sets the cursor visible.

get_scroll

utils.get_scroll(): number

Returns -1.0 if the mouse wheel is spinning down, 1.0 if the mouse wheel is spinning up, and 0.0 if the mouse wheel is not rotating.

Last updated