Unreal multiplayer Flashcards

(7 cards)

1
Q

How do you set a property to be replicated?

A

With either the UPROPERTY specifier Replicated or ReplicatedWith=”OnRep_FunctrionName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you determine an actors network role?

A

With the function “GetLocalRole()”. To determine if the actor is being controlled by the player use the method IsLocallyControlled()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Within unreal multiplayer, what are RPCs?

A

RPC: Remote Procesure Call
Core Unreal mechanic for calling a function on one machine and having it execute on another.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 3 types of RPCs?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What kind of server does Unreal use?

A

It uses an authoritative client server model

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a session?

A

It is an instance of the gane running on the server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the lifetime if a session?

A

Create session
Wait for the playerss to join
regiser players
start session
Play
End session
Unregister players
Update session / Destroy session

How well did you know this?
1
Not at all
2
3
4
5
Perfectly