How to refer to global variables in extentions

Hello.
I’m making an extension. I want to play a sound effect there, and every time I do that, I use a couple of global variables. Like this:

As you can see, the extension doesn’t recognize them. How can I get around this? I’d like to do it inside the extension, so everything stays well organized.

If I need to utilize the “Parameter” -system, I don’t understand how. The drop down menu seems to lack an option for global variables.

[Bring back a way for easy access to scene variables in extensions - #45 by Digi-Device_File I read about this yesterday. Not sure whether it relates to this.]

Thanks

If you don’t need to change the global variables from within the extension then you could pass the values using parameters that are numbers. You could then call the function using the global variables as a value.

There is a variable parameter type. It’s used to copy the variable to/from an extension variable. But, if you just need the value, it’s easier to use a numerical parameter.

1 Like

Yeah, don’t use “copy variable” actions, they are meant to extract the extension state and save it.