Edited wiki page LuaAPI through web user interface.
authorRedGrinner
Thu, 30 Dec 2010 23:25:21 +0000
changeset 78 2edf207a905a
parent 77 588f5dc682e2
child 79 64fc6cee4af7
Edited wiki page LuaAPI through web user interface.
LuaAPI.wiki
--- 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.