User Tools

Site Tools


modding:function:typaddrecurringtimerevent

Differences

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

Link to this comparison view

modding:function:typaddrecurringtimerevent [2017/01/20 03:10] – created xephyrmodding:function:typaddrecurringtimerevent [2017/01/20 03:14] (current) – typos xephyr
Line 6: Line 6:
  
 ^ Syntax | (typAddRecurringTimerEvent unid interval event) | ^ Syntax | (typAddRecurringTimerEvent unid interval event) |
-^ Arguments | unid: The unid of the type you want to get the value of an attribute from. |+^ Arguments | unid: The unid of the type you want to add the event on. |
 ^ | interval: interval in ticks between events. | ^ | interval: interval in ticks between events. |
 ^ | event: the event on the type to fire | ^ | event: the event on the type to fire |
 ^ Returns |  | ^ Returns |  |
 ^ Category | [[type]], [[unid]] | ^ Category | [[type]], [[unid]] |
-^ Description | calls an event on the type to fire every interval|+^ Description | calls an event on the type to fire after every interval, in ticks |
  
 === Example === === Example ===
Line 17: Line 17:
 <code lisp>(typAddRecurringTimerEvent typeUNID 100 "Success") </code> <code lisp>(typAddRecurringTimerEvent typeUNID 100 "Success") </code>
  
-Calls the event called Success on the player ship every 100 ticks. Return to Functions list +Calls the event called Success on the type every 100 ticks. Return to Functions list 
  
 Return to [[modding:function:type_functions|type functions]] list Return to [[modding:function:type_functions|type functions]] list
modding/function/typaddrecurringtimerevent.1484881857.txt.gz · Last modified: 2017/01/20 03:10 by xephyr