0
\$\begingroup\$

How can I implement a system in my application's user interface (UI) where certain UI elements are selectively visible to specific players, ensuring that each player, such as Player A, can exclusively view and interact with their own inventory, while preventing other players, like Player B, from accessing or seeing Player A's inventory?

\$\endgroup\$
2
  • 1
    \$\begingroup\$ Just to confirm: these players are playing concurrently over a network, each with their own separate device/display? \$\endgroup\$
    – DMGregory
    Commented Jan 19 at 17:41
  • \$\begingroup\$ @DMGregory yes, exactly \$\endgroup\$
    – Xenophile
    Commented Jan 19 at 17:42

1 Answer 1

1
\$\begingroup\$

Make sure the entity has authority before activating the UI :)

if is_multiplayer_authority()
\$\endgroup\$
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .