diff -r 588f5dc682e2 -r 2edf207a905a 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 @@
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 + -- masks the long and high jump commands +SetInputMask(band(0xFFFFFFFF, bnot(gmLJump + gmHJump))) + -- clears input mask, allowing player to take actions + SetInputMask(0xFFFFFFFF) Note: Using the input mask is an effective way to script uninterrupted cinematics, or create modes such as No Jumping.