📚
Deadly Dungeons
  • Initial page
  • Traps
    • Introduction
    • Trap Triggers
    • Raycast Triggers
    • Disabling Traps with Triggers
    • Trap
    • Trap Mechanism
      • Animator
      • Launcher
      • Particle (Trap Mechanism)
      • Physics
    • Effect Handlers
      • Audio Handler
      • Particle (Effect Handler)
      • Ray Handler
      • Custom Effect Handler
    • Damage System
      • Damage Source
      • IDamageable
      • Damage Result
    • Damageable Example
    • Utility
      • AutoConnect Joint
      • Texture Mover
Powered by GitBook
On this page

Was this helpful?

  1. Traps

Disabling Traps with Triggers

PreviousRaycast TriggersNextTrap

Last updated 4 years ago

Was this helpful?

To create a game object that can disable an already active trap, use a to control player interactions.

  • Assign the trap component.

  • Set Action to Disable, and the cooldown greater than 0 (to avoid fast repetitive action).

  • Set Tag filter to Player.

  • Interaction to Key Code, usually E.

  • Set Events if you want to show or hide UI, spawn particles such as sparks or audio when the action happens.

Trigger
In this example, the pressure plate activates the sawblade, and the touch panel disables it.