Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hasAuthority is false for NPCs #3528

Closed
miwarnec opened this issue Jun 27, 2023 · 1 comment · May be fixed by #3530
Closed

hasAuthority is false for NPCs #3528

miwarnec opened this issue Jun 27, 2023 · 1 comment · May be fixed by #3530
Labels
bug Something isn't working

Comments

@miwarnec
Copy link
Collaborator

see also: #3495

repro:

  • Tanks demo
  • drag Tank into scene, name it SceneTank
  • add log message:
        void Start()
        {
            Debug.LogWarning($"{name} hasAuthority={hasAuthority} isOwned={isOwned} authority={authority}");
        }

it works properly for the player's tanks.
for the NPC in the scene, it's always false.
even though server owns it.

@miwarnec miwarnec added the bug Something isn't working label Jun 27, 2023
@miwarnec
Copy link
Collaborator Author

working on a fix. editor=host, build=client:
2023-06-27 - 12-09-02@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant