LuaAPI.wiki
changeset 379 3552b458f1ea
parent 373 0f9322acd00a
child 380 b9bd613524ca
equal deleted inserted replaced
378:4793d4b4e6be 379:3552b458f1ea
   667 SetInputMask(band(0xFFFFFFFF, bnot(gmLJump + gmHJump))) 
   667 SetInputMask(band(0xFFFFFFFF, bnot(gmLJump + gmHJump))) 
   668     -- clears input mask, allowing player to take actions
   668     -- clears input mask, allowing player to take actions
   669     SetInputMask(0xFFFFFFFF) 
   669     SetInputMask(0xFFFFFFFF) 
   670 		</code>
   670 		</code>
   671 Note: Using the input mask is an effective way to script uninterrupted cinematics, or create modes such as No Jumping. 
   671 Note: Using the input mask is an effective way to script uninterrupted cinematics, or create modes such as No Jumping. 
       
   672 
       
   673 
       
   674 === <tt>!SetGravity(percent)</tt> ===
       
   675 
       
   676 <blockquote>Changes the current gravity of the game in percent (relative to default, integer value).
       
   677 Setting it to 100 will set gravity to default gravity of hedgewars, 200 will double it, etc.
       
   678 </blockquote>
       
   679 
       
   680 === <tt>!GetGravity()</tt> ===
       
   681 
       
   682 <blockquote>Returns the current gravity in percent
       
   683 </blockquote>
   672 
   684 
   673 === <tt>!SetZoom(zoomLevel)</tt> ===
   685 === <tt>!SetZoom(zoomLevel)</tt> ===
   674 
   686 
   675 <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
   687 <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
   676 </blockquote>
   688 </blockquote>