Question by
Emielionen · May 19, 2016 at 08:55 PM ·
unity 5networkingobjectsauthoritative
How do I give authority over a gameObject that already exists
Well I have a weapon in-game, it should shoot bullets with a command.
When I use NetworkServer.SpawnWithClientAuthority(projectile, player)
it spawns an extra gun in the scene which has authority, but the player isn't a parent so it just freezes mid-air.
With my singleplayer game there is no issue, but for multiplayer, the only thing I need is to get authority on the existing weapon for every player..
Any ideas?
Thanks in advance :)
Comment
Your answer
Follow this Question
Related Questions
uNet Windows Dedicated Server 1 Answer
Using syncVar in networkManager 1 Answer
Command function called on server 0 Answers
What does this error mean? 1 Answer
How to disbale a network start position on runtime 0 Answers