Lua Examples: Difference between revisions
No edit summary |
|||
Line 2: | Line 2: | ||
=== et.RegisterModname() === | === et.RegisterModname() === | ||
'''Example Usage''' | '''Example Usage''' | ||
Line 15: | Line 16: | ||
et.RegisterModname( "^1MY MOD NAME" ) | et.RegisterModname( "^1MY MOD NAME" ) | ||
end | end | ||
= = |
Revision as of 23:50, 2 April 2015
Lua is a server sided scripting language allowing users to customize their servers and settings to the fullest. Here below you will be able to find many examples on how the Lua Wolf API works in silEnT while getting a general understanding of lua.
et.RegisterModname()
Example Usage
function et_InitGame( levelTime, randomSeed, restart ) local modname = "^1MY MOD NAME" et.RegisterModname( modname ) end
or
function et_InitGame( levelTime, randomSeed, restart ) et.RegisterModname( "^1MY MOD NAME" ) end