Can i make a game like marvel ultimate alliance, like using 4 players through missions

can i make a game like marvel ultimate alliance, like using 4 players through missions. If so how can i make it where some missions i only play with one character, some with 2, and some with 3 and 4.

yes, the google keywords your looking for “companion ai ue4” should give decent results.

this is how to switch from controlling one character to another.
https://docs.unrealengine.com/en-us/Gameplay/HowTo/PossessPawns/Blueprints

although you probably would set the character references from some character selection widget, whereas the example in the link uses references to actors in the level.

if it’s your first game you may want to start with something easier to learn the engine.

thanks for your help