#Player object not working properly

1 messages · Page 1 of 1 (latest)

vast coral
#

This is my player characters code https://paste.ofcode.org/xyTZcwGpxS4HxZJKkVAyyy

When I start the game, two player instances spawn (one for the host and one for the client).

With the current code, both the host and the client can individually move both the players. But each instance only seems to move the player it owns.

I commented out the if (!IsOwner) return; check, so input from one instance should, in theory, affect both player objects. That isn’t happening.

I also have a NetworkTransform on the player object with authority set to Owner.

So my questions is:

Why doesn’t input from one instance move both players after removing the IsOwner check?

leaden belfry
#

This is because only the object owner is able to change the Network Transform. I'm surprised it doesn't give an error message in the console.