self.c2_callFunction("name", ["param1", "param2"]);
- self.c2_callFunction(name, params)
Synchronously trigger the function with the given name in the event system. params is optional and can be omitted if no parameters are to be passed; otherwise it must be an array of the parameters to pass. Parameters may only be string or number primitives - any other types will return as 0 in Construct. If the function in the event system returns a value, it is also returned by this method, and also can only return a string or number primitive.