s2client-api icon indicating copy to clipboard operation
s2client-api copied to clipboard

Question about set replay oberver perspective

Open DotaIsMind opened this issue 6 years ago • 3 comments

API provides a sc2::ReplayPlayerInfo to get the player's information in every replay. For example, the first player ID is 0 and the race is Zerg, the second player ID is 1 and race is Protoss. I want to analyze the replay just using the Zerg's perspective, but I didn't find the function in Coordinator or ReplayObserver to set the perspective before starting replay game. Will player 0's perspective be used by default when loading the replay?

DotaIsMind avatar Apr 02 '19 10:04 DotaIsMind

To my knowledge there currently is no function to change the observers perspective, so you will always only be able to observer player 0.

Frigerius avatar Apr 02 '19 19:04 Frigerius

Thank you. Hopefully this function will be available in the future, otherwise I'll have to find more replays.

DotaIsMind avatar Apr 03 '19 03:04 DotaIsMind

Try my PR #273

Archiatrus avatar Apr 04 '19 18:04 Archiatrus