I made a simple staff and threw it into the world, wrote a short script to make it so that a temporary animated character could pick the item up and carry it. This works flawlessly in a singleplayer context - that is, on the screen of the person that ran over the staff, the staff is being waved around with every minor move of the character, and I can make it swap from hand to back and … back.
However, on the screens of others, depending on what I’m trying at the time, the staff is there for other people to pick up and everyone has their own staff, but no-one else can see them, or the staff vanishes completely from everyone other than the holder, or… something equally bizarre.
No matter what settings I use, though, I can’t get it anywhere close to the desired result: Pick up and carry, while being visible to everyone. Think of it somewhat like a capture the flag concept, where everyone can see it, but only one person can grab it… and it’s very visible while it’s being traveled with.
I originally tried this with PUN and switched from Photon to uNet for a variety of reasons. Photon had exactly the same results, again depending on what I was trying at the time.
Some notes of the current state of it: I have a Network Identity and Network Transform on the staff. I’ve tried making it Local Player Authoritative (Which didn’t make sense at the time of trying it, since the staff itself wouldn’t have been ‘controlled’ in the traditional sense), and Server-Only (Which did what I expected it to: Hid it from everyone but the server-client).
Since the staff itself doesn’t have animations to speak of, it doesn’t have an animator or Network Animator. While I’m sure there’s something I need to be doing in a script to make it work, I haven’t the slightest (And haven’t been able to find anything throughout a night-long search which resulted in player-controlled characters being the issue, which isn’t the case here). The characters run around and animate (Via Mecanim) as intended at this stage.
In short, how do you make inanimate objects visible to all, collectible by one, and entirely wieldable/wearable over uNet?
Thanks!