Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get friend count and data? #169

Open
jokru opened this issue Nov 3, 2024 · 1 comment
Open

Get friend count and data? #169

jokru opened this issue Nov 3, 2024 · 1 comment

Comments

@jokru
Copy link

jokru commented Nov 3, 2024

The greenworks docs have this example, is the same possible with steamworks.js?

var greenworks = require('./greenworks');

if (greenworks.init()) {
  // Get the number of regular friends.
  console.log(greenworks.getFriendCount(greenworks.FriendFlags.Immediate));
  var friends = greenworks.getFriends(greenworks.FriendFlags.Immediate);
  for (var i = 0; i < friends.length; ++i) {
    console.log(friends[i].getPersonaName());
    greenworks.requestUserInformation(friends[i].getRawSteamID(), true);
  }
}
@Morthy
Copy link

Morthy commented Dec 3, 2024

Would also be interested in being able to get friends data!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants