I am trying to create a game where each player has a bow that follows them. I want the bow to be the same so I don’t have to make the same bow over and over again but I am having trouble trying to get each instance of the bow to go to the correct player. Player one gets it and player 2 doesn’t even though I have set everything to the correct ID in the Player ID variable that I made.
Player 1 has the bow and player 2 Doesn’t in the picture. I want them both to have a bow and both of them be able to control it separately. I would also like this to be stackable so I can have it work with multiple player like 4 to 6 or something
I didn’t notice that this was for multi-player. I haven’t used that part yet.
If you have to pick the bow owned by the current player, do you also have to pick the player object owned by the current player before you can place the bow around it? This is just an assumption since I have no experience with multi-player.
I don’t know if you need the ID with multi-player unless the player has multiple bows. I think you use the same condition as the bow.
In the first event try adding object player is owned by current player That way when you use the action that places the bow it will know which player object to get the X, Y from.
I have no idea how you set who owns which object but as long as it’s setup, it seems logical that that is what needs to happen.
Edit: I see in the document that certain objects need the multiplayer behavior and need to be set to the right player. Although, some can be left in control of the host. Again, I’m still not clear about who gets what.
If you’re still stuck, I would look at some of the example projects and the documentation.
Ope, I got it fixed! I just had to place a piece of code that Repeated for each Instance of the bow under when this scene starts and change the variable that I had set to the wrong one. I also did what you had said to have a condition for the player to get the correct player. Now the game works perfectly!
Hi, do you care to share your code? I have been trying to basically figure out the same thing. I have repeated for all instances of my gun and set the player to player.ID. I also use the condition to make sure ownership of player is current player. But I cannot get it to work no matter what I do. Any help is very much appreciated! Thanks!