Skip to reading
Shaders, Effects & Layered Scenery

47. Attach and detach through an action list

Edition 0.86.4.0

Revised 0.86.4.0 edition with new supplements; earlier 0.86.3.4 lessons and screenshot labels are retained within the supplied PDF.

Download PDFView PDF page

1. Create the effect and target point in the editor first. Save both.

2. Open the event that should activate it, such as a GUI button, verb interaction or trigger.

3. Choose Attach Particle Effect from the shared Action List catalog.

4. Set Particle Effect to hand_orb, Target Object to ada (or player), Target Attach Point to right_hand_grip and Attachment Offset to [0,0.04,0].

5. Add Change Object Property with entity hand_orb, property particle.enabled and value true.

6. On the ending event, use particle.enabled false or hide the source as required, then Detach Particle Effect when the link should end.

Code example
{
  "type":"AttachParticleEffect",
  "entityId":"hand_orb",
  "targetId":"player",
  "targetPoint":"right_hand_grip",
  "offset":[0,0.04,0]
}

These are the same shared actions in visual nodes, cutscene events and text scripts. The attachment action moves an existing emitter; it does not create a new Particle object.

Detach keeps the emitter’s current world pose and does not disable it. If an aura should disappear when released, define that visibility/emission step explicitly.

Page 51 of 93Permalink
Go to page