equal
deleted
inserted
replaced
384 === <tt>!SetInputMask(mask)</tt> (0.9.15) === |
384 === <tt>!SetInputMask(mask)</tt> (0.9.15) === |
385 |
385 |
386 <blockquote>Masks specified player input. |
386 <blockquote>Masks specified player input. |
387 </blockquote> |
387 </blockquote> |
388 Example: |
388 Example: |
389 <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 |
389 <code lang="lua"> -- masks the long and high jump commands |
390 SetInputMask(0xFFFFFFFF) -- clears input mask, allowing player to take actions |
390 SetInputMask(band(0xFFFFFFFF, bnot(gmLJump + gmHJump))) |
|
391 -- clears input mask, allowing player to take actions |
|
392 SetInputMask(0xFFFFFFFF) |
391 </code> |
393 </code> |
392 Note: Using the input mask is an effective way to script uninterrupted cinematics, or create modes such as No Jumping. |
394 Note: Using the input mask is an effective way to script uninterrupted cinematics, or create modes such as No Jumping. |
393 |
395 |
394 === <tt>!SetZoom(zoomLevel)</tt> (0.9.14) === |
396 === <tt>!SetZoom(zoomLevel)</tt> (0.9.14) === |
395 |
397 |