add SetGravity and GetGravity
authorsheepyluva@gmail.com
Tue, 21 Jan 2014 13:29:31 +0000
changeset 379 3552b458f1ea
parent 378 4793d4b4e6be
child 380 b9bd613524ca
add SetGravity and GetGravity
LuaAPI.wiki
--- 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