The title kinda speaks for itself. We're using a lot of functions in our game for one-time events and such, and it just seems impractical to have to manually map each function to a string before we're able to call it. Is there a more efficient way to get functions mapped, or even automate the process? If not I understand.
Develop games in your browser. Powerful, performant & highly capable.
Yeah, I don't use function maps for that reason. If I need to call a function by name I do it with scripting:
runtime.callFunction(localVars.fName)
Where fName is a local variable containing the function name.
Yeah that seems like a way more efficient way to do it.
I found other responses to similar questions and figured it out by setting a local variable to the array string i want to call, then calling that. Worked perfectly. Thank you so much!