call

The call method invokes the function object, and returns it's result. If not enough parameters are supplied, then an error is raised.

.call()

Invokes this function with no parameters.

player = getPlayer()
event = def()
    player.kill()
end

// ... some time later ...

event.call()

.call( parameters )

Calls this function with the Array of parameters provided. Note that the parameters must be provided inside of an Array.

adder = def( a, b, c )
    return a + b + c
end

adder.call( [ 1, 2, 3 ] )

Null, or an empty array, can also be passed in to denote no parameters.