62. Attach and control a particle effect
Figure 39. Attach Particle Effect targets an existing emitter and a named point on its parent.
1. Author a Particle object such as hand_orb, initially with emission off.
2. Create and test right_hand_grip on the character; bind it to the actual hand bone if it must follow animation.
3. Add Attach Particle Effect: effect hand_orb, target player, point right_hand_grip, offset [0,0.04,0].
4. Use Change Object Property: hand_orb, particle.enabled, Boolean true.
5. When the effect ends, set particle.enabled false and hide it if immediate disappearance is required.
6. Use Detach Particle Effect when it should stop following the target.
The action links an existing emitter. It does not create a particle record, invent a missing attach point, add damage or play a sound. Put those responsibilities in explicit actions when needed.
Use Change Game Setting or the relevant scene/property action for screen effects. A surface effect can travel with an attached object; a whole-screen post-process is part of the view.
Detaching preserves the current world pose and does not disable emission. A missing named point should be corrected on the intended target rather than replaced with a guessed offset.
