Multiplayer Minimap Integration Instructions
In this tutorial we’ll be integrating the Multiplayer Minimap with the ThirdPersonTemplate. You can find an example of this complete tutorial in the asset folder as well.
Multiplayer Minimap Integration Instructions
In this tutorial we’ll be integrating the Multiplayer Minimap with the ThirdPersonTemplate. You can find an example of this complete tutorial in the asset folder as well.
Create a new project.
Create a new landscape.
Take a screenshot of your map from the top perspective. You can get an image of your landscape however you want – this is just a quick example for this tutorial.
Import your image as a texture into the project.
Go to the Blueprints folder and drag the BP_MinimapLevelHandler into your level.
IMPORTANT! Pick your landscape and set the minimap texture for your level to the image that you just took.
Delete the default pawn from your level.
Create a new game mode, HUD and Player Controller. You can also use the example HUD which comes with this asset if you prefer.
Create a new widget in the HUD class. In this example i've used the example HUD which comes with this asset.
Go to the ThirdPersonCharacter Blueprint and add this logic to it. This is only for testing. This simply destroys the character on the server and replicates it to all connected clients so that each client removes the dead player’s icon from their minimap.
The most important part is making sure we open the PlayerController blueprint that we created earlier and attach the AC Minimap component to it.
Than add a new interface BPI Minimap Controller to the Player Controller.
After you've added the new interface, you’ll have some new functions exposed to the player controller.
Double click on each one and add the variables from the AC Minimap component like this.
And finally, create this logic in the event graph of the PlayerController blueprint.
You’re done! Enjoy your new Multiplayer Minimap :)