CommandsEx
Allows developers to register commands in the WEBFISHING chat without patching, inside GDScript.
Last updated | 2 weeks ago |
Total downloads | 2680 |
Total rating | 1 |
Categories | Tools Libraries Client Side |
Dependency string | lunakittyyy-CommandsEx-2.0.0 |
Dependants | 1 other package depends on this package |
This mod requires the following mods to function
README
CommandsEx
Allows developers to register commands in the WEBFISHING chat without patching, inside GDScript.
API Code Example
signal myCommandSignal
# you HAVE to register this in _enter_tree()!!!!!!!!
# If you don't register this here, it WILL NOT WORK and your node WILL NOT BE CREATED!!!
func _enter_tree():
var node = get_node("/root/CommandsEx")
# the parameters here are as follows, in order: command name, command signal, object signal belongs to, method to run on command
node.register_command("mycommand", "myCommandSignal", self, "myCommandRecieve")
func myCommandRecieve(text, args):
PlayerData._send_notification("Now these points of data make a beautiful line")
PlayerData._send_notification("We're out of beta we're releasing on time")