It is currently October 21st, 2021, 6:29 am

SKIN:GetVariable specify another config

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

SKIN:GetVariable specify another config

Post by Wallboy »

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?