Jump to content


Photo
Discussion

In-game & Away

node.js node-steam-user

Best Answer Dr. McKay , 19 September 2019 - 10:21 PM

In the user event (or getPersonas), user.persona_state == SteamUser.EPersonaState.Away tells you if their status is set to "Away". And you can check if user.game_played_app_id is truthy to see if they're in-game.

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 Ino

Ino

    Advanced Member

  • Member
  • PipPipPip
  • 100 posts

Posted 19 September 2019 - 06:10 AM

Hi, how can i know that my friend In-Game & Away ? 
In the steam chat it looks like 
image.png
 



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,212 posts

Posted 19 September 2019 - 10:21 PM   Best Answer

In the user event (or getPersonas), user.persona_state == SteamUser.EPersonaState.Away tells you if their status is set to "Away". And you can check if user.game_played_app_id is truthy to see if they're in-game.



#3 Ino

Ino

    Advanced Member

  • Member
  • PipPipPip
  • 100 posts

Posted 20 September 2019 - 02:21 AM

In the user event (or getPersonas), user.persona_state == SteamUser.EPersonaState.Away tells you if their status is set to "Away". And you can check if user.game_played_app_id is truthy to see if they're in-game.

Thank you !







Also tagged with one or more of these keywords: Discussion, node.js, node-steam-user

4 user(s) are reading this topic

0 members, 4 guests, 0 anonymous users