# HG changeset patch # User RedGrinner # Date 1293751343 0 # Node ID 588f5dc682e273d679ea9bf69819c47daacc3b2d # Parent 0cdebc52edadd7cac959acbfe98de53a47b4957f Added SetInputMask function diff -r 0cdebc52edad -r 588f5dc682e2 LuaAPI.wiki --- a/LuaAPI.wiki Thu Dec 30 23:08:54 2010 +0000 +++ b/LuaAPI.wiki Thu Dec 30 23:22:23 2010 +0000 @@ -381,6 +381,16 @@
Plays the specified sound for the chosen hedgehog's team.+=== !SetInputMask(mask) (0.9.15) === + +
Masks specified player input. ++Example: +
SetInputMask(band(0xFFFFFFFF, bnot(gmAnimate+gmAttack+gmDown+gmHJump+gmLeft+gmLJump+gmPrecise+gmRight+gmSlot+gmSwitch+gmTimer+gmUp+gmWeapon))) -- masks just about anything the player might want to do
+ SetInputMask(0xFFFFFFFF) -- clears input mask, allowing player to take actions
+
+Note: Using the input mask is an effective way to script uninterrupted cinematics, or create modes such as No Jumping.
+
=== !SetZoom(zoomLevel) (0.9.14) ===
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