Api Sandbox Friend
struct

Friend

public sealed struct Friend

Constructors

Friend(UInt64 steamid)
Friend(Int64 steamid)

Properties

Name Type Description
IsMe Boolean Returns true if this friend is the local user
Id UInt64 The friend's Steam Id
Name String The friend's name
IsOnline Boolean Returns true if your friend is online
IsFriend Boolean Returns true if this user is your friend
IsAway Boolean Returns true if your friend is away
IsBusy Boolean Returns true if this friend is marked as busy
IsSnoozing Boolean Returns true if this friend is marked as snoozing
IsPlayingThisGame Boolean Returns true if they're playing this game
IsPlayingAGame Boolean Returns true if they're playing any game

Methods

String GetRichPresence(String key)

Returns a string that was possibly set by rich presence

Void OpenInOverlay()

Opens the Steam overlay web browser to their user profile.

Void OpenAddFriendOverlay()

Opens the Steam overlay with a popup that allows the local Steam user to confirm whether to add this user to their Steam friends list.

Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.Friend