How do you set a property to be replicated?
With either the UPROPERTY specifier Replicated or ReplicatedWith=”OnRep_FunctrionName
How do you determine an actors network role?
With the function “GetLocalRole()”. To determine if the actor is being controlled by the player use the method IsLocallyControlled()
Within unreal multiplayer, what are RPCs?
RPC: Remote Procesure Call
Core Unreal mechanic for calling a function on one machine and having it execute on another.
What are the 3 types of RPCs?
Server: called by the client and exwecuted on the servers instance of the actors.
Client: called by the server and edectuted on the specific client that owns the actors. Other clients do not execute the function.
Net Multiplayer: Called by the server and executed on the server and all conceted clients that are relevent to the actor. If called by a client, it will only ecxecute locally on that clients machine.
What kind of server does Unreal use?
It uses an authoritative client server model
What is a session?
It is an instance of the gane running on the server.
What is the lifetime if a session?
Create session
Wait for the playerss to join
regiser players
start session
Play
End session
Unregister players
Update session / Destroy session