Game Maker

Player Sneak / Unsneak

Triggers when a player starts or stops sneaking.

These events fire when a player's sneak state changes.

Player Sneak

Triggers the moment a player begins to sneak (presses the sneak key).

  • Action Values: Player
  • Use Cases:
    • Revealing hidden passages or blocks when a player sneaks in a certain spot.
    • Making players invisible while they are sneaking in a specific region.
    • Activating a special "stealth mode" property.

Player Unsneak

Triggers the moment a player stops sneaking.

  • Action Values: Player
  • Use Cases:
    • Hiding a passage that was revealed by sneaking.
    • Removing a "stealth mode" effect.

Example: A Secret Sneak-Activated Door

  1. Region: A small region in front of a wall where the secret door is.
  2. Player Sneak Event:
    • Action: Change Block: Change the wall blocks to AIR to reveal the passage.
  3. Player Unsneak Event:
    • Action: Change Block: Change the AIR blocks back to wall blocks to hide the passage.