Never done anything like this but…
Question 1:
I would imagine it would just be a case of mapping certain controls to certain player controllers, so one Player 1 would have controls for whatever the “rider” does, shoot arrows or something and Player 2 would control the horse/animal mounted.
Question 2:
Have you tried using the attach to actor/detach nodes? For getting the player to mount and dismount?
So We have this game that is gonna be playable via networking. We have teams. In each team there is 2 players. One controls the Mount. The other controls the Rider. Both have differents cameras and controls. But they are socketed together.
First how to create this to work.
Second. If the Rider want to dismount and walk, do we ceate another character BP or just keep the original one with desactivated commands. ( like walking, pickup objects ).
If you have answer for one of the question please feel free to help me. Thank you very much!
We havent try anything yet. We wan’t some Q first
And we have 2 characters, with controls, but it is to know how to spawn them together and both be playable by 2 players
Haha, well the “mount/dismount” is pretty straight forward, there is a node for it called “attach to actor” and it gives a socket location to specify, and when you want to dismount there is a “detach from actor” node. So node need to make 2 different characters. That being said, I don’t have multiplayer functionality so there is no way for me to test your other question personally but if you have it set-up I would just map the controls for the horse to one player and the controls for the rider to another player and assign the controllers to the pawns you want. You would need to make sure the appropriate variables are replicated but other than that I think it will be fairly straight forward.
You could probably just handle that in the level blueprint. Have the level spawn the 2 actors at the start of gameplay and assign the controllers. Again, never done the multiplayer thing, just going off the basic logic here. Spawning actors isn’t hard, neither is attaching one to the other. So have some higher level BP like the level, or game instance depending on your set-up spawn the actors and attach them.
Anytime. Let me know how it works out!
Thank you very much for your time and answer, I learned something today! We will try this!