Forum Discussion

motorsep's avatar
motorsep
Start Partner
5 months ago
Solved

Attaching entities (IAP items) to player(s) ?

Let's say I want player to attach some entities (items) to its wrist, fingers, arms, head, etc. in-game in runtime (and keep them on from session to session). The items could be hats/helmets, rings, bracelets, etc. from either in-game economy or IAP items.

If such thing possible, is there a guide about it ?

  • You can't attach them directly as they do not have any associated anchor points. The best you can do is get the hand position and track it using onUpdate().

3 Replies

  • You can attach objects to players using an attachable entity. Attach points are head and torso. You can use player persistent variables to reattach entities when they rejoin the world.

    • motorsep's avatar
      motorsep
      Start Partner

      So, nothing can be attached to arms/wrists/fingers ?

      • SeeingBlue's avatar
        SeeingBlue
        MHCP Mentor

        You can't attach them directly as they do not have any associated anchor points. The best you can do is get the hand position and track it using onUpdate().