LuaAPI.wiki
changeset 382 5b90c6ef1f62
parent 381 87b3dcfe11cc
child 383 6679b75048c0
equal deleted inserted replaced
381:87b3dcfe11cc 382:5b90c6ef1f62
   813 
   813 
   814 <blockquote>Prevents the engine of sending health stats to the front end. 
   814 <blockquote>Prevents the engine of sending health stats to the front end. 
   815 
   815 
   816 If any health stats haven't been sent before this will cause the health graph to the stats page to be hidden. Use this function in the lua scripts to produce custom graphs by calling it inside onGameStart() and using the SendStat().</blockquote>
   816 If any health stats haven't been sent before this will cause the health graph to the stats page to be hidden. Use this function in the lua scripts to produce custom graphs by calling it inside onGameStart() and using the SendStat().</blockquote>
   817 
   817 
       
   818 == Math Functions ==
       
   819 
       
   820 === <tt>!div(dividend, divisor)</tt> ===
       
   821 
       
   822 <blockquote>Performs an integer division and returns the result.
       
   823 The result is an integer and has the value of the first parameter (integer) divided by the second parameter (integer), rounded towards zero.
       
   824 </blockquote>
       
   825 
   818 == Debugging Functions ==
   826 == Debugging Functions ==
   819 
   827 
   820 === <tt>!WriteLnToConsole(string)</tt> ===
   828 === <tt>!WriteLnToConsole(string)</tt> ===
   821 
   829 
   822 <blockquote>Writes (string) to the game0.log, found in the user data directory.
   830 <blockquote>Writes (string) to the game0.log, found in the user data directory.