Construct 3 r241

You're viewing a single comment in a conversation. View all the comments
  • 1 Comments

  • Order by
  • In scripting, I noticed that I have to pass each of the parameters in a function as an array:

    runtime.globalVars.dumpvar = runtime.callFunction("GetJSONHeroStatByID", [1],[".Name"]);

    or or else I get a javscript error saying i'm only passing 1 param but 2 are expected, if I use it the way the dpcumentation says:

    runtime.globalVars.dumpvar = runtime.callFunction("GetJSONHeroStatByID", [1, ".Name"]);

    Anyone else getting this?