godot
godot copied to clipboard
Cannot get NPC to sync
Godot version
4.1
System information
Fedora 6.2.9-300.fc38.ppc64le AMD GPU
Issue description
I am unable to sync the position of my zombies. All examples out there only spawn players but none spawn NPCs. I am trying to have the NPCs be under the authority of the server (since that is the only thing that makes sense), but regardless I cannot get the position of the zombies to be sync'ed by a multiplayersynchronizer node. I get no real errors except this message, which looking through the C++ I cannot find out what I am doing wrong:
E 0:00:05:0399 on_spawn_receive: Condition "parent->has_node(name)" is true. Returning: ERR_INVALID_DATA
<C++ Source> modules/multiplayer/scene_replication_interface.cpp:596 @ on_spawn_receive()
Steps to reproduce
Just run the project, shoot the zombie and you will see that they report their positions and they are not the same at all on the server as opposed to the client