set no. of player and mode
Choose new editor window
Duplicate player start in scene, put it next to each other
Check in the player BP, if replicates in details if ticked what it needed
Remark:
Anim Montage cannot be replicated here, need to make BP event graph for it.
To change character mesh look:
place the character BP in scene, choose the mesh and change the material to see how it looks:
After preview, delete the BP in scene
In its even graph:
Create a graph with key 2 initiate the material change:
(Element index stands for the material number)
Now if any new action happen in game (e.g. change color, pick item), it wont’ replicate in the client/server interface. To make it replicates, add custom event (e.g. RPC Change material):
RPC stands for Remote Procedure Calls.
Choose multicast (replicate on all other players, will show in the node as “Execute on all custom event”)
Now change in server replciate on client side, but client side change can’t replciate on server.
To solve this, create another custom event (RPC server change material, replicate as Run on server)
and change the hotkey 2 output (i.e. hotkey 2 call server to change mtl, then sever change mtl)
To duplicate anim montage:
Create a anim montage (if doesn’t have any before)
Make sure the ABP has default slot node (needed to play anim montage)
In 3rd person BP, again create a custom event, RPC_AttackAnim (same as above)
Now anim montage can replicate too in both server and client.