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

Player/character current activity #421

Closed
DarkHollow opened this issue Feb 22, 2018 · 5 comments
Closed

Player/character current activity #421

DarkHollow opened this issue Feb 22, 2018 · 5 comments
Labels

Comments

@DarkHollow
Copy link

Is there any way to know the current activity of a player or a character?

I only know how to retrieve data for the last ended activity but I don't see how to get the actual activity.

I have searched the API and the github issues but I have not found anything about it.

@vthornheart-bng
Copy link
Contributor

Ah, yes! What you'll want to do is make a GetCharacter or GetProfile request, and request the CharacterActivities component. That will return you one of these (either one for GetCharacter, or one per character for GetProfile):

DestinyCharacterActivitiesComponent

The combination of currentActivityHash and currentPlaylistActivityHash can be used to get both the playlist they're playing (if they are) and the specific map in that playlist - or if it's not a playlist, the specific activity they're playing!

@DarkHollow
Copy link
Author

DarkHollow commented Feb 22, 2018

Oh, thank you very much, I use GetProfile and GetCharacter for other data, I don't know how I overlooked the activities component, sorry!

@vthornheart-bng
Copy link
Contributor

No worries, no need to apologize at all! I'm glad to help whenever I can - there is a ludicrous amount of data in the API, and I find that even I forget where some of this data is at despite the fact that I was the one who created it! ^_^

@APNPAPNU
Copy link

How would I convert the Current Activity hash into the activity name ?

@DarkHollow
Copy link
Author

First you would need to get the Manifest in order to get all the data related that Current Activity hash.

There are people around here who can explain it better than me. Also, I think there is an online Manifest in which you can directly consult the hash.

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

No branches or pull requests

3 participants