Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google Log In with Steam Sign In
  • Create Account
Photo

HI, lua models


  • Please log in to reply
2 replies to this topic

#1
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

Hi everyone, first of all sorry for being so boring, and posting so much threads.

 

Well here is my question.

 

Currently ive got this in my cfg considered with lua.

 

//
// Lua API
set lua_modules "spec.lua"
set lua_allowedModules ""
 
Now i want to add some more lua modules like auto promotion and custom votes. Do I add those other lines in this present set lua_modules "spec.lua"
 and just divide them with comma, or i make totally new line like set lua_modules "customvote.lua" and so on? thanks.


#2
OFFLINE   Zelly

Zelly

    Regular Member

  • Coders
  • PipPipPip
  • 141 posts
73
Getting Better

You should really consider looking at the wiki first http://mygamingtalk.....php/SilEnT_Mod it has most all of the information you usually need.
Description for lua_modules
 

 

List of files to be loaded by the Lua API engine. Can be separated by space, comma or semicolon. The paths are relative to the mod's directory, and can optionally be placed inside pk3 archieves. We are aiming for compatibility with ETPro's Lua Mod API found at

 

As a more direct answer:

set lua_modules "spec.lua autopromote.lua customvote.lua"

Replacing the names with the names of your luas of course.



#3
OFFLINE   Dookie

Dookie

    Advanced Member

  • Members
  • PipPipPipPip
  • 420 posts
55
Getting Better
  • LocationCroatia

thx zelly!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users