Mtasc compileable Delegate class.
static function create(obj:Object, func:Function):Function
Creates a functions wrapper for the original function so that it runs in the provided context.
obj | Context in which to run the function. |
func | Function to run. you can add custom parameters after this to be the additional parameters when called the created function. |