add_interface(name, functions) | Add a remote interface. |
remove_interface(name) → boolean | Removes an interface with the given name. |
call(interface, function, ...) → Anything | Call a function of an interface. |
interfaces :: dictionary string → dictionary string → boolean [R] | List of all registered interfaces. |
Removes an interface with the given name.
False
if the interface didn't exist.
List of all registered interfaces. For each interface name, remote.interfaces[name]
is a dictionary
mapping the interface's registered functions to the value true
.
game.player.print(tostring(remote.interfaces["human interactor"]["hello"])) -- prints true
game.player.print(tostring(remote.interfaces["human interactor"]["nonexistent"])) -- prints nil