This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
modding:syntax [2020/06/11 01:26] yoshi [Imports] |
modding:syntax [2020/08/01 12:32] yoshi |
||
---|---|---|---|
Line 10: | Line 10: | ||
===== Basic Syntax ===== | ===== Basic Syntax ===== | ||
- | The most common syntax structures used for Transport Fever 2 are described briefly below. A full reference of the LUA syntax is available at the [[https:// | + | The most common syntax structures used for Transport Fever 2 are described briefly below. A full reference of the LUA syntax is available at the [[https:// |
==== Functions ==== | ==== Functions ==== | ||
Line 17: | Line 17: | ||
<code lua> | <code lua> | ||
- | function functionname(parametername1, | + | local function functionname(parametername1, |
-- code | -- code | ||
return resultname | return resultname |