setLinkEvent

General

setLinkEvent setups a link event. It will do whatever the callback function does when the link executes.


Usage

Client:setLinkEvent(<number> interval, <string> linkName, <function> callback)
Returns: <Connection> linkConnection

The callback function should use these arguments:
<arraydata, <number> date

This event is fired by triggering the website. Please generate a link beforehand, it can be generated using generateLink.

This is a singleton function, it won't run on all the servers - just a single one to avoid function event fired multiple times.


Limitations

See getLink.


Example

Client:setLinkEvent(5, "welcome", function(data)
	print("Welcome ", data.member.displayName)
end)

setLinkEvent.PNG

Back to top