48. Carry a prop and attach an effect to it
For a staff with a glowing tip, make two links: the staff follows the hand, and the particle follows the staff’s tip. This keeps the effect tied to the prop rather than making it imitate a guessed hand offset.
1. On the character, create a bone-bound right_hand_grip point.
2. On the staff, create a grip point where the hand should hold it and a tip point at the glowing end.
3. Place the staff as an ordinary live scene object.
4. Use Attach Object to align the staff’s grip point to the character’s right_hand_grip point.
5. Use Attach Particle Effect to attach the authored particle to the staff’s tip point.
6. Test idle, walking and gesture animations. Fix the staff’s grip alignment before adjusting its tip effect.
await AttachObject({"entityId":"staff","point":"grip",
"targetId":"player","targetPoint":"right_hand_grip"})
await AttachParticleEffect({"entityId":"staff_glow",
"targetId":"staff","targetPoint":"tip",
"offset":[0,0,0]})The attachment system rejects self-links and cycles. Do not attach the staff to its own particle or attach the character back to the staff. All participants must be compatible live entities in the loaded room.
A prop’s Own Attach Point and the target’s Target Attach Point are different fields. The first belongs to the child being moved; the second belongs to the destination.
