Is it possible to change variable added by control.lua from a different mod

Place to get help with not working mods / modding interface.
Post Reply
User avatar
bigmond
Inserter
Inserter
Posts: 28
Joined: Fri Aug 30, 2019 11:11 am
Contact:

Is it possible to change variable added by control.lua from a different mod

Post by bigmond »

So if a mod adds a variable in control.lua is it possible to change that variable from another mod.
Please no more spagetti, I cant eat any more.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3699
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Is it possible to change variable added by control.lua from a different mod

Post by DaveMcW »

You can do it from the console with

Code: Select all

/c __mod-name__ global.variable = "newvalue"
The only way to do it from a different mod is if the mod that owns the variable implements a remote interface.

Post Reply

Return to “Modding help”