7

I have a lua script which is run using the command line interpreter, the script needs to load a table from a file. The table is stored like this:

create_object_action = {
    reflexive = true,
    which_base_type = 29,
    how_many_min = 1,
    how_many_range = 0,
    velocity_relative = false,
    direction_relative = true,
    random_distance = 0
}

How can I load the data in the table into the global namespace?

1 Answer 1

14
dofile "mytables.lua"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.