User Tools

Site Tools


lua:cancelfunction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
lua:cancelfunction [2014/12/26 23:15]
vodur
lua:cancelfunction [2017/02/19 23:20]
vodur
Line 1: Line 1:
 ====== cancel ====== ====== cancel ======
  
-Syntax 1: cancel() \\+Syntax 1: cancel()\\
 Cancels any delayed functions linked to the game object invoking the cancel that have no tag set. Cancels any delayed functions linked to the game object invoking the cancel that have no tag set.
  
-Syntax 2: cancel("<​nowiki>​*</​nowiki>"​) \\+Syntax 2: cancel("<​nowiki>​*</​nowiki>"​)\\
 Cancels any and all delayed functions linked to the game object invoking the cancel. Cancels any and all delayed functions linked to the game object invoking the cancel.
  
-Syntax 3: cancel(tag[string]) \\+Syntax 3: cancel( tag<string)\\
 Cancels any delayed functions linked to the game object invoking the cancel whose tag matches the tag argument. Cancels any delayed functions linked to the game object invoking the cancel whose tag matches the tag argument.
  
Line 19: Line 19:
 end end
  
-delay(10, do_stuff) cancel() -- do_stuff will never run+delay(10, do_stuff) 
 +cancel() -- do_stuff will never run
 </​code>​ </​code>​
  
Line 49: Line 50:
  
 See [[:​lua:​delayfunction|delay]] See [[:​lua:​delayfunction|delay]]
 +
  
lua/cancelfunction.txt · Last modified: 2017/02/19 23:20 by vodur