Advanced Sessions Plugin

For linking to on the first page

Setting up the Advanced Game Instance and Player Controller Interfaces

The Game Instance

Start by creating a blueprint GameInstance class and setting it default for your game. Once that is complete go into the Class Options for it and Reparent it to the “Advanced Friends Game Instance” class.
This gives you access to the options and Event nodes that it provides.

These are the options that the Game Instance provides, it allows you to turn off calling the Accepted session and/or voice Events for player controllers and turning off receiving the voice events at all.

These are the events that become accessible in the Game Instance with the class reparented.

The Player Controller

Sometimes it might be preferable to access the events that the Game Instance provides directly in a player controller, if you wish to do so then add the Advanced Friends Interface to the interfaces available for the player controller class like is shown above.

Adding the interface gives you access to these new delegates in your player controller. You control whether they are called or not in the GameInstance, if it is set to call them it will search for player controllers that implement the interface and call the delegate on them if it is appropriate (For session invite accepted on the player that accepted the invite, and for talking state changed, on every player controller that implements the interface).

1 Like