--- a/LuaAPI.wiki Thu Dec 30 23:22:23 2010 +0000
+++ b/LuaAPI.wiki Thu Dec 30 23:25:21 2010 +0000
@@ -386,8 +386,10 @@
<blockquote>Masks specified player input.
</blockquote>
Example:
-<code lang="lua"> 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
+<code lang="lua"> -- masks the long and high jump commands
+SetInputMask(band(0xFFFFFFFF, bnot(gmLJump + gmHJump)))
+ -- clears input mask, allowing player to take actions
+ SetInputMask(0xFFFFFFFF)
</code>
Note: Using the input mask is an effective way to script uninterrupted cinematics, or create modes such as No Jumping.