Facepunch.Steamworks Wiki

Revision Difference

Grouping_Friends#523913

<cat>code.friends</cat>⤶ <title>Grouping Friends</title>⤶ ⤶ <upload src="1/8d7b6082ad1d832.png" size="121151" name="image.png" />⤶ ⤶ Using Rich Presence you can make a group of friends appear together on the friends list.⤶ ⤶ To do this you set two key values, `steam_player_group` and `steam_player_group_size`.⤶ ⤶ ```⤶ ⤶ var MyTeamName = IsTerrorist? "terrorist" : "counter-terrorist";⤶ var teamSize = player_list.Count( x => x.IsTerrorist );⤶ ⤶ SteamFriends.SetRichPresence( "steam_player_group", MyTeamName );⤶ SteamFriends.SetRichPresence( "steam_player_group_size", teamSize.ToString() );⤶ ```⤶ ⤶