Skip to content

Commit 0897d90

Browse files
no message
1 parent fb0ce07 commit 0897d90

File tree

1 file changed

+6
-4
lines changed
  • LSQuickScripts/Example Project/LSQuickScripts Examples/Public/LSQuickScripts

1 file changed

+6
-4
lines changed

LSQuickScripts/Example Project/LSQuickScripts Examples/Public/LSQuickScripts/LSQuickScripts.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ui {"widget":"label", "label":"LSQuickScripts v2.16"}
1+
//@ui {"widget":"label", "label":"LSQuickScripts v2.17"}
22
//@ui {"widget":"label", "label":"By Max van Leeuwen"}
33
//@ui {"widget":"label", "label":"-"}
44
//@ui {"widget":"label", "label":"Place on top of scene ('On Awake')"}
@@ -489,12 +489,14 @@
489489
//
490490
//
491491
// makeSignal(callback [function]) : object
492-
// Makes a function into a signal that you can bind functions to. Returns an object containing a 'callback', an 'add' and a 'remove' function.
492+
// Makes a function into a signal that you can bind functions to. Returns an object.
493493
// Bind using 'add' and 'remove', and call the 'callback' to execute.
494494
//
495495
// Example
496-
// script.signal = makeSignal(); // in another script, bind a function using 'script.signal.add(function)' or 'script.signal.remove(function)'
497-
// if(somethingHappens) script.signal.callback(args);
496+
// var signal = makeSignal()
497+
// signal.add(someFunction)
498+
// signal.callback(args)
499+
// signal.remove(someFunction)
498500
//
499501
//
500502
//

0 commit comments

Comments
 (0)