I am working on a custom extension, and I need to use some external variables (the extension’s variables).
There is a way to check them, and a way to change them, but I don’t know if is possible to use them (for example in a function). I would need that. There is a way to use them? Maybe by javascript?
I was talking about external scene variables:
if I create an external variables, and I set it as “10”, and I call that by name as a scene variables, the program read that as a new scene variables with value of 0.
It is on an object of the extension.
If I check the variables as a normal scene variables in the condition event, it read that as 10, but if a want to use in a function (for example in the debug), it read that as 0.
OK. You can use external variables or create a function that returns the values to a parameter setup as variable. That way the behavior can be used with any variable without changing the behavior.
You can setup a parameter as type variable and then use an action to either copy the variable in the paramer to a function variable or copy a function variable to the variable in the parameter.