0 votes

So I have multiplayer game, client sends sockets from Server node with rpcid and unreliablerpc_id to server. Server sends back and it works, so I have client-server structure, played with multiple people all fine and good.

Now I want to add bots, bots are controlled by clients and emulate players, so I wanted each bot to be it's own peer and connect to server, so for server bots look absolutely same as client.

However, because all network has to be done from Server node, it ruined all my plans of having peer inside each bot object and sending packets to server. What do I do?

When bot connects, server says error because it doesn't have this node or something. I can create this folder on server, but then I need to generate random names for bots on clients to make sure they're not intersecting, and stuff like that. IDK what to do. Maybe it's just dumb idea? If so how do I go about making client controlled bots for client-server game?

Godot version 3.3.2 stable
in Engine by (138 points)

Can you share some code / links to what you used.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.