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

why i always get 0 when i call getLocationX from the CombatLogEntry interface in onCombatLogEntry callback funtion. #302

Open
onduty1981 opened this issue May 11, 2023 · 1 comment

Comments

@onduty1981
Copy link

in onCombatLogEntry(CombatLogEntry cle) callback funtion,
when cle.getType() == DOTA_COMBATLOG_ABILITY and cle.getInflictorName() == "kunkka_ghostship", i also get 0 ba calling cle.getLocationX().
This skill is released by mouse position,why i can't get positon by calling getLocationX()?

@spheenik
Copy link
Member

If that's the case, I'm pretty sure the replay does not contain the data. A CombatLogEntry sent by the server is only sparsely filled.
Try calling cle.hasLocationX(), if it returns false, this means the replay does not contain the field.

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