Equipment / Equipment Mirroring

Equipment mirroring is an attachment equipment feature that gives you the ability to duplicate the attached equipment visual to multiple components and sockets. It also provides the ability to manipulate the transform for each.

To use mirroring you should first enable the checkbox for it on the piece of equipment in the DT_Equipment data table. Select your row, then set EnableMirroring? to true. Next you will need to respawn to the getMirrorTargets function on your pawn. This function was added with the BPI_EquipmentPawn blueprint interface you added when you did the pawn setup.

This function will provide the equipment slot, and the equipment slot index. From this you can decide if a mirror is required for the slot. If it is you can return the mesh, socket, and the transform.

In the demo character you can see an example of this, which is used to mirror our boots to the left foot. Since our boot is a single mesh, and we attach it to our right foot by default, we use the mirror function to also show it on the other foot.

To flip the mesh on the mirror target, like we did with the boot, you can return a -1 in the scale for the axis you wish to flip.

You also have the option to provide a different mesh component, giving you the ability to equip your items on a secondary mesh. This can be used in a multiplayer FPS, where the player always sees the FPS mesh but a third person one is used for everyone else to see.