theace0296 / steamworks-node

A wrapper library to call the steamworks API from NodeJS.
MIT License
24 stars 2 forks source link

How to use functions that require a SteamID? #7

Open RicochetYT opened 2 years ago

RicochetYT commented 2 years ago

Hello there! Cool project here. I have never used nodeJS before, but managed to cobble a script together, but I'm stuck on one final thing that may or may not be very simple, but I have no clue! If I wanted to get use GetFriendPersonaName(steamID) on a manually inserted SteamID, what would I do in order to do that?

steamID = ???
personaName = SteamWorks.SteamFriends.GetFriendPersonaName(steamID);

I'm not sure what to put for steamID. I got the object name(?) for SteamWorks.SteamUser.GetSteamID(); and that turned out to be:

_exports_CSteamID {}

Which did not help at all on what I should do for the steamID. Once again, sorry if this is stupid, but I have never used nodeJS or JS itself before, so I am just going off of guesswork and documentation, as well as prior knowledge from other languages for a project of my own.