Advertisement
otorp2

signals

Oct 28th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. have you looked at this one? https://github.com/godotengine/godot/wiki/gdscript#signals
  2. <kubecz3k> basically in the node that emit signal you need to declare signal with signal keyword
  3. * PLyczkowski (~quassel@89-65-89-170.dynamic.chello.pl) has joined
  4. <kubecz3k> then you can connect from editor gui or with command: get_node(path_2_node_with_registered_signal).connect("your_signal_name",self,"callback_no_args")
  5. <kubecz3k> and emit with emit("your_signal_name") (from that node that have signal declaration)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement