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

How to get game time? #129

Open
dishine opened this issue Dec 28, 2020 · 3 comments
Open

How to get game time? #129

dishine opened this issue Dec 28, 2020 · 3 comments

Comments

@dishine
Copy link

dishine commented Dec 28, 2020

I can get chat event from onCDOTAUserMsg_ChatEvent ,but how to get every event's game time ?

@jacobxy
Copy link

jacobxy commented Apr 26, 2021

You can get the tick from "P",
The data of "CDOTAGamerulesProxy" has the tick and the gametime.
Then you can get the event's game time.

@dishine
Copy link
Author

dishine commented May 28, 2021

How do I get CDOTAGamerulesProxy ?

@jacobxy
Copy link

jacobxy commented May 28, 2021

p.OnEntity
pe.GetClassName() == "CDOTAGameurlesProxy"

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