--- a/LuaAPI.wiki Mon Jan 20 08:07:59 2014 +0000
+++ b/LuaAPI.wiki Tue Jan 21 13:29:31 2014 +0000
@@ -670,6 +670,18 @@
</code>
Note: Using the input mask is an effective way to script uninterrupted cinematics, or create modes such as No Jumping.
+
+=== <tt>!SetGravity(percent)</tt> ===
+
+<blockquote>Changes the current gravity of the game in percent (relative to default, integer value).
+Setting it to 100 will set gravity to default gravity of hedgewars, 200 will double it, etc.
+</blockquote>
+
+=== <tt>!GetGravity()</tt> ===
+
+<blockquote>Returns the current gravity in percent
+</blockquote>
+
=== <tt>!SetZoom(zoomLevel)</tt> ===
<blockquote>Sets the zoom level. The value for maximum zoom is currently 1.0 and for minimum 3.0 The default zoom level is 2.0