equal
deleted
inserted
replaced
379 === <tt>!PlaySound(soundId, gearUid)</tt> (0.9.15) === |
379 === <tt>!PlaySound(soundId, gearUid)</tt> (0.9.15) === |
380 |
380 |
381 <blockquote>Plays the specified sound for the chosen hedgehog's team. |
381 <blockquote>Plays the specified sound for the chosen hedgehog's team. |
382 </blockquote> |
382 </blockquote> |
383 |
383 |
|
384 === <tt>!SetInputMask(mask)</tt> (0.9.15) === |
|
385 |
|
386 <blockquote>Masks specified player input. |
|
387 </blockquote> |
|
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 |
|
390 SetInputMask(0xFFFFFFFF) -- clears input mask, allowing player to take actions |
|
391 </code> |
|
392 Note: Using the input mask is an effective way to script uninterrupted cinematics, or create modes such as No Jumping. |
|
393 |
384 === <tt>!SetZoom(zoomLevel)</tt> (0.9.14) === |
394 === <tt>!SetZoom(zoomLevel)</tt> (0.9.14) === |
385 |
395 |
386 <blockquote>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 |
396 <blockquote>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 |
387 </blockquote> |
397 </blockquote> |
388 |
398 |