I have a game world that is made up of cells. I create him by mask, looks like:
0 - is floor
1 - is wall
2 - is enemy
1111
1021
1111
Floor and wall just is image in TileMap, but enemy is Node
First, I create an instance of all the enemies on the server, and when (at a random moment) the client connects, I send him a map and again create an instance of all the enemies, but now on client side.
Next if I call enemy.rpc("kill")
thenkill()
will be called by the respective enemies, those who are in the same position(same cell).
But I can't understand, how RPC understands that this node is correct?
I want to know it, because sometimes I get error Failed to get path from RPC
and I think it’s somehow connected