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

Add RunInNTicks or RunOnTick #367

Closed
busheezy opened this issue Mar 6, 2024 · 3 comments · Fixed by #374
Closed

Add RunInNTicks or RunOnTick #367

busheezy opened this issue Mar 6, 2024 · 3 comments · Fixed by #374

Comments

@busheezy
Copy link
Contributor

busheezy commented Mar 6, 2024

It would be great to be able to do things like "run in 3 ticks."

RunInNTicks(3, () => Logger.LogInformation("wooo, 3 ticks!"));

and/or

var futureTick = Server.TickedTime + 3;
RunOnTick(futureTick, () => Logger.LogInformation("wooo, 3 ticks!"));

This has been discussed briefly here: #354 (comment)

@github-actions github-actions bot added the untriaged New issue has not been triaged label Mar 6, 2024
@dran1x
Copy link
Contributor

dran1x commented Mar 6, 2024

Killstreak made something for this a while ago, don't know if it still works or not.

https://discord.com/channels/1160907911501991946/1160925208203493468/1171270690016600114

@busheezy
Copy link
Contributor Author

busheezy commented Mar 6, 2024

Yep, it's mentioned in the comment linked above.

@dran1x
Copy link
Contributor

dran1x commented Mar 6, 2024

I was going to bring an issue up sooner or later about integrating it into CS#, it's nice.

roflmuffin added a commit that referenced this issue Mar 11, 2024
@roflmuffin roflmuffin added this to the Future milestone Mar 11, 2024
@github-actions github-actions bot removed the untriaged New issue has not been triaged label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants