LuaAPI.wiki
changeset 394 b2742eb19396
parent 384 08ce9e2c5618
child 398 1f9f7fb00be3
equal deleted inserted replaced
393:6cf42dce2dcc 394:b2742eb19396
   626 </blockquote>
   626 </blockquote>
   627 
   627 
   628 === <tt>!EndGame()</tt> ===
   628 === <tt>!EndGame()</tt> ===
   629 
   629 
   630 <blockquote>Makes the game end.
   630 <blockquote>Makes the game end.
   631 </blockquote>
       
   632 
       
   633 === <tt>!ParseCommand(string)</tt> ===
       
   634 
       
   635 <blockquote>Makes the gameclient parse the specified custom command.
       
   636 </blockquote>
   631 </blockquote>
   637 
   632 
   638 === <tt>!ShowMission(caption, subcaption, text, icon, time)</tt> ===
   633 === <tt>!ShowMission(caption, subcaption, text, icon, time)</tt> ===
   639 
   634 
   640 <blockquote>Use to tell the player what he is supposed to do.
   635 <blockquote>Use to tell the player what he is supposed to do.
   828 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.
   829 </blockquote>
   824 </blockquote>
   830 
   825 
   831 == Debugging Functions ==
   826 == Debugging Functions ==
   832 
   827 
       
   828 === <tt>!ParseCommand(string)</tt> ===
       
   829 
       
   830 <blockquote>Makes the gameclient parse the specified custom command.
       
   831 
       
   832 *Note*: Please be aware that the *engine protocol can (and will) change* between releases.
       
   833 
       
   834 If you do use ParseCommand to overcome a shortcoming in our Lua API (e.g. a missing Function), please make sure to [https://code.google.com/p/hedgewars/issues/entry report the issue].
       
   835 
       
   836 With your report we can fix the shortcoming in future releases.
       
   837 This will allow scripts to use the previously missing feature in a way that won't break!
       
   838 </blockquote>
       
   839 
   833 === <tt>!WriteLnToConsole(string)</tt> ===
   840 === <tt>!WriteLnToConsole(string)</tt> ===
   834 
   841 
   835 <blockquote>Writes (string) to the game0.log, found in the user data directory.
   842 <blockquote>Writes (string) to the game0.log, found in the user data directory.
   836 </blockquote>
   843 </blockquote>