[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Cleaning up specific lua scripts
- From: Enrico Colombini <erix@...>
- Date: Wed, 24 Mar 2010 12:47:11 +0100
Ricky Haggett wrote:
Yep, we could store a table of all of the functions / tables within a
specific level script, but it would be awkward for the designers to
maintain, and a potential source of error...
You could load the level into a table, use setfenv to have level
functions see this table as 'global', and add true global functions to
the table when you load a level.