I created a script.js file within the Project\Scripts path.
And there I created a function like this:
function test_func(a, b) {
console.log(a, b);
}
Can I pass parameters when calling this function from the Events sheets?
I know I can create a Javascript section within Events sheets and pass parameters when calling the function from there.
If so, can I pass parameters to that JavaScript section? Or do I have to manually pass parameters by referring to like global variables?
I'm a full stack developer. This is a question to see if there is a better way that I don't know. (Because I am not yet familiar with Construct3 system.)