-
Notifications
You must be signed in to change notification settings - Fork 92
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
Comments
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! |
Oh, thank you very much, I use GetProfile and GetCharacter for other data, I don't know how I overlooked the activities component, sorry! |
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! ^_^ |
How would I convert the Current Activity hash into the activity name ? |
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. |
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.
The text was updated successfully, but these errors were encountered: