Lua Examples: Difference between revisions

From MyGamingTalk
No edit summary
No edit summary
Line 1: Line 1:
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.
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

Revision as of 23:48, 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