LuaAPI.wiki
changeset 383 6679b75048c0
parent 382 5b90c6ef1f62
child 384 08ce9e2c5618
equal deleted inserted replaced
382:5b90c6ef1f62 383:6679b75048c0
   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 ==
   818 == Math Functions ==
   819 
   819 
   820 === <tt>!div(dividend, divisor)</tt> ===
   820 === <tt>div(dividend, divisor)</tt> ===
   821 
   821 
   822 <blockquote>Performs an integer division and returns the result.
   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.
   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>
   824 </blockquote>
   825 
   825