66. Put the effect on an event
Once an effect is authored, an event decides when it is used. The shared Action List catalog is available in scene events, verb interactions, GUI events, visual scripts and cutscenes. Start with a simple test button before connecting the effect to a complicated puzzle.
1. Create an authored GUI button named Show Hand Effect.
2. Open its Events tab and choose an Action List for Click.
3. Add Attach Particle Effect and select the existing hand_orb emitter and player target.
4. Enter right_hand_grip and the desired offset.
5. Add Change Object Property for hand_orb → particle.enabled → true.
6. Create a second button that disables/hides the effect and detaches it.
7. Test the buttons during gameplay. GUI Preview is useful for appearance; it deliberately does not execute the full game event flow.
| Value type | Enter it as |
|---|---|
| Boolean | true or false; not a text string saying "true". |
| Number | A numeric value such as 0.4, not a record ID. |
| Vector | A numeric list such as [0,0.04,0]. |
| Record reference | The actual ID selected by the field, even when the menu shows Name(ID). |
| Whole shader configuration | An object/dictionary with layers and the relevant option fields. |
Additional Event Actions run after a GUI event’s selected primary behavior. If a button already changes a verb, decide whether the effect should accompany that behavior or replace it.
