It is currently June 26th, 2019, 11:00 pm

SKIN:GetVariable specify another config

Discuss the use of Lua in Script measures.
Posts: 62
Joined: October 1st, 2012, 4:53 am

SKIN:GetVariable specify another config

Wallboy » August 6th, 2014, 5:52 am

I'm trying to control another skin from a different one through Lua. One skin sets options for the first skin using SKIN:Bangs and specifying the "config". However I noticed that the SKIN:GetVariable function does not allow you to specify another "config" to get it from.

To get around this, I have to duplicate the variables in both skins by using SKIN:Bangs to SetVariable for both, and then using SKIN:GetVariable in the other skin. It would be handier if you could specify an optional "config" name to get the variable from to avoid duplication.

Any chance we could get this option added, or was there a reason this wasn't included?