📚
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

Trap Mechanism

PreviousTrapNextAnimator

Last updated 4 years ago

Was this helpful?

These components define how the trap works: moving, rotating using physics or particles, and launching projectiles.

You can use multiple mechanisms in a single trap. Putting them together as parent-child will result in a more complex trap.

  • Play Mode: After activation, the mechanism executes itself once only, or as a loop until the deactivation happens.

  • Cooldown: Seconds before the mechanism can reactivate. 0 means no cooldown.

  • Reset on Finish: This only available in Only Once play mode.

  • Command: what should the effect handler do when the selected event happens.

Effects: A list of rules that controls effects. Assign an to call a selected command on it when an Event happens.

Effect Handler
Animator
Launcher
Particle (Trap Mechanism)
Physics
This trap has two mechanisms: one for rotating the saw, the other for moving it along the slot.