System Lua API

From Off Grid Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

System

Description

System API provides access to game settings and other generic system features

Functions

SetLanguage

System.SetLanguage(langCode)

Expected parameter types

Name Type
langCode string

Description: Sets the game language

Returns: Nothing

GetCurrentInputMethod

System.GetCurrentInputMethod()

Description: Checks what kind of input method was last used

Returns: string, either 'keyboard' or 'gamepad'

Notes: Use this to change hint messages etc. tutorialization based on current input device


This file is auto generated, please don't edit manually!

Docs last hacked together on: 29/08/2023 16:24