Blizzard / s2client-api

StarCraft II Client - C++ library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
1.66k stars 281 forks source link

Question about set replay oberver perspective #300

Open DotaIsMind opened 5 years ago

DotaIsMind commented 5 years ago

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?

Frigerius commented 5 years ago

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

DotaIsMind commented 5 years ago

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

Archiatrus commented 5 years ago

Try my PR #273