Multiple Players In Scene
I'm looking for a bit of information on handling multiple players in a game.
For us we need to have more than one player on the screen (I can spawn one in my PlayerController using CreatePlayer()).
Is there a way to switch control over to this other player?
Also is there a way for the player to "see" the player 2 so that I can call functionality on it? Maybe creating the second player a different way and assigning it to a variable?
asked May 14 '15 at 06:30 AM in C++ Programming
Found my solution.
I'm using a TActorIterator to find all the pawns in the scene and adding them to an array, then using the PlayerController Possess function to take control of the other player
Here is a sample of my code:
answered May 14 '15 at 06:57 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here