System Lua API: Difference between revisions

From Off Grid Wiki
Jump to navigation Jump to search
(Created page with "<!-- This file is auto generated, please don't edit manually! --> = System = == Description == System API provides access to game settings and other generic system features ==...")
 
No edit summary
 
Line 17: Line 17:
'''Returns''': Nothing
'''Returns''': Nothing


=== GetCurrentInputMethod ===
<syntaxhighlight source lang="lua">System.GetCurrentInputMethod()</syntaxhighlight>
'''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!
This file is auto generated, please don't edit manually!


'''Docs last hacked together on''': 13/10/2021 15:55
'''Docs last hacked together on''': 29/08/2023 16:24
[[Category:Modding]][[Category:LuaAPI]]
[[Category:Modding]][[Category:LuaAPI]]

Latest revision as of 14:26, 29 August 2023

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