Game Characters (1st, 3rd, enemy)

Swap character by pressing a button



Duplicate mannequin Material instance with different color
image.png

In 3rd person BP, create variable being visible
image.png
Construction script
(tick default value on player 1)
image.png

In world setting,
set Default pawn class to None (don’t let spawn on character)
image.png
Drag the 3rd person BP in scene,
go to details, set auto possess player to player 0
image.png
Duplicate the 3rd person BP in the scene, untick player a default:
Auto posses player disable
image.png

Open map level BP:
Select the 3rd person BP, R click in event graph of map level BP
Create a reference to Playerbase BP
image.png
Repeat the same on the other duplicated 3rd person BP

Set project setting input in action mapping
image.png
Set follow in map level graph:
image.png

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.