I've been making a game for 11 months now, and I've decided to add a script called
Khas Awesome Light Effects for the last parts of the game.
The problem is, this script "searches surfaces on the map, in order to cut the light pictures. In a huge map, the number of surfaces may increase a lot."
In the parts of the game where I don't need the script, there are massive maps (roughly 100x200).
Thing is, with this script on, it takes around 10-15 minutes for the script to load every tile as "Non-Light Object".
I've already seen Script Disablers on the forums (
TDS's one for example), but those are only for debug purposes, and the game needs to be restarted in order to reenable a script again.
I'm looking for a way to disable scripts while In-Game until a certain condition is met, allowing early large maps to be loaded quickly. Or maybe a piece of code that could prevent the script from working until a switch is activated.
I would mostly ask this as a script, since it could be useful to anyone that uses a lot of heavy scripts, but any way possible is fine.
Of course, I can wait a long time for the script, as the game is still in development (meaning I can use Editor-linked Script Disablers at the moment, but I won't be able to use them when the game will enter its final development phase).
I'm sorry if my English isn't perfect or if my way of writing seems confused (and confusing), it might be the language barrier... ^^'