Quit

From MaratisWiki
(Difference between revisions)
Jump to: navigation, search
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 +
{{lua-function|quit|}}
 +
 
Bind a key to quit the game
 
Bind a key to quit the game
  
Line 8: Line 10:
  
 
[[Category:Lua scripting]]
 
[[Category:Lua scripting]]
 +
[[Category:Lua function]]
 +
[[Category:System]]

Latest revision as of 16:55, 8 February 2014

quit()

Bind a key to quit the game

Example :

   function onSceneUpdate()
       if isKeyPressed("K") then quit() end
   end
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox