Are commands possible?

  • RadioActiveLua
    11th Nov 2013 Member 0 Permalink

    I was wondering if there is any possible way to make commands? For example: I say "test" in the console and it

    reads a function telling it to print("Test"). On another game i use lua in it would work somthing like this:

    admin.Chatted:connect(function(msg)

    if string.sub(msg,1,4)=="test" then

    print("Test")

    end

    end)

  • nucular
    11th Nov 2013 Member 0 Permalink
    You can only use the Lua console for that. Currently a large part of the console api would have to be rewritten to allow dynamic command addition, also, doing this with a simple global Lua function is much more powerful.
  • RadioActiveLua
    11th Nov 2013 Member 0 Permalink

    Oh, ok thanks.

  • damionfeller
    14th Nov 2013 Member 2 Permalink
    This post has been removed by jacksonmj: offtopic
  • CatAnimation
    19th Nov 2013 Banned 0 Permalink
    This post is hidden because the user is banned
  • FeynmanLogomaker
    19th Nov 2013 Member 1 Permalink

    It's a good idea, but it could be tricky.