瀏覽代碼

Updated the Function Description

I noticed that this was wrong in the documentation I decided to fix it.
The change is entirely in commented text.  The old description was still
referencing the legacy functions onTimer() and setTimerOff() instead of
the new functions.
Peter Robinson 10 年之前
父節點
當前提交
69b27d3922
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      engine/source/sim/simObject_ScriptBinding.h

+ 3 - 3
engine/source/sim/simObject_ScriptBinding.h

@@ -900,11 +900,11 @@ ConsoleMethodWithDocs(SimObject, clone, ConsoleInt, 2, 3, ([copyDynamicFields =
 */
 
 /*! Starts a periodic timer for this object.
-    Sets a timer on the object that, when it expires, will cause the object to execute the onTimer() callback.
-    The timer event will continue to occur at regular intervals until setTimerOff() is called.
+    Sets a timer on the object that, when it expires, will cause the object to execute the given callback function.
+    The timer event will continue to occur at regular intervals until stopTimer() is called or the timer expires.
     @param callbackFunction The name of the callback function to call for each timer repetition.
     @param timePeriod The period of time (in milliseconds) between each callback.
-    @param repeat The number of times the timer should repeat.  If not specified or zero then it will run infinitely
+    @param repeat The number of times the timer should repeat.  If not specified or zero then it will run infinitely.
     @return No return Value.
 */
 ConsoleMethodWithDocs(SimObject, startTimer, ConsoleBool, 4, 5, (callbackFunction, float timePeriod, [repeat]?))