title: NLua (LuaInterface) - Calling a function
body: <p>How is it possible to call a function when running a lua script using <a href="https://github.com/NLua" rel="nofollow">NLua</a> (A LuaInterface fork)?</p>
  
  <p>For example, right now I have:</p>
  
  <pre><code>lua.LoadFile("C:\\test.lua")
  lua.Call();
  </code></pre>
  
  <p>However, that just runs the script. Inside the script I have a custom function. I want to be able to run that function only. I tried:</p>
  
  <pre><code>lua.Call("functionTest")
  </code></pre>
  
  <p>But that didn't work. How can I do that?</p>
  
  <p>My lua script is like so:</p>
  
  <pre><code>function functionTest()
     someMethod()
  end
  </code></pre>
  
  <p>Or, if it's not possible - Is there a way to include different scripts inside one lua file? I want to be able to run the same file with different arguments for scripts, like:</p>
  
  <pre><code>script1 = {
      -- Code
  }
  
  script2 = {
      -- Code
  }
  </code></pre>
  
  <p>Thanks.</p>