Effect Handlers
These components control different visual or audio effects. You can add them to the list on the Trap Mechanism components.
  • Delay: how many seconds after the command executes after triggering.
Methods you can call with the commands in the mechanism or directly from code. Not all of these are available for every handler type.
1
// Only plays the effect once.
2
void PlayOnce()
3
​
4
// Start playing the effect indefinitely
5
void Play()
6
​
7
// Paused the effect. When the play called, it resumes.
8
void Pause()
9
​
10
// Stops the effect and resets it
11
void Stop()
Copied!
​
Last modified 8mo ago
Copy link