Game setting

icon picker
MultiPlayer Replication Basic


set no. of player and mode
image.png
Choose new editor window
image.png

Duplicate player start in scene, put it next to each other
image.png

Check in the player BP, if replicates in details if ticked what it needed
image.png
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
image.png
In its even graph:
Create a graph with key 2 initiate the material change:
(Element index stands for the material number)
image.png

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”)
image.png
image.png
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
image.png
(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)
image.png
Make sure the ABP has default slot node (needed to play anim montage)
image.png
In 3rd person BP, again create a custom event, RPC_AttackAnim (same as above)
image.png

Now anim montage can replicate too in both server and client.
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.