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

Getting camera coordinates etc. of casters #112

Open
nuhash opened this issue Dec 7, 2019 · 1 comment
Open

Getting camera coordinates etc. of casters #112

nuhash opened this issue Dec 7, 2019 · 1 comment

Comments

@nuhash
Copy link

nuhash commented Dec 7, 2019

I can get hero locations through OnEntity and filtering out entities that are heroes. I assume that I can do something similar to get the camera info. I'm not really sure what class I need to get a hold of to be able to do it.

I tried going through the SpectatorPlayerUnitOrder and that does seem to capture some actions of the caster but not always (I'm guessing because they can't issue commands).

@moofMonkey
Copy link

Players' camera positions are stored in C_DOTAPlayer entities as their position.

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

No branches or pull requests

2 participants