LuaAPI.wiki
changeset 1632 4c982152eb2e
parent 1631 50432569b972
child 1637 e747c0c6bf26
equal deleted inserted replaced
1631:50432569b972 1632:4c982152eb2e
    71 
    71 
    72 == Globally available variables and constants ==
    72 == Globally available variables and constants ==
    73 The following variables are made available by Hedgewars in Lua and can be used to quickly query a value. Lua scripts schould normally *not* write to these variables, only read from them.
    73 The following variables are made available by Hedgewars in Lua and can be used to quickly query a value. Lua scripts schould normally *not* write to these variables, only read from them.
    74 
    74 
    75 === General variables and constants ===
    75 === General variables and constants ===
    76 Here are some unsorted variables or constants which are available in Lua. **Consider these variables to be read-only.**
    76 Here are some unsorted variables or constants which are available in Lua. *Consider these variables to be read-only.*
    77 
    77 
    78 || *Identifier* || *Description* ||
    78 || *Identifier* || *Description* ||
    79 || `LOCALE` || Current locale identifier (e.g. “de” for German) ||
    79 || `LOCALE` || Current locale identifier (e.g. “de” for German) ||
    80 || `LAND_WIDTH` || The width of the landscape in pixels. Not available before `onGameStart` ||
    80 || `LAND_WIDTH` || The width of the landscape in pixels. Not available before `onGameStart` ||
    81 || `LAND_HEIGHT` || The height of the landscape in pixels. Not available before `onGameStart` ||
    81 || `LAND_HEIGHT` || The height of the landscape in pixels. Not available before `onGameStart` ||