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

Dispatching an event from another event crashes the game? #106

Open
ZH-Hristov opened this issue Apr 13, 2024 · 1 comment
Open

Dispatching an event from another event crashes the game? #106

ZH-Hristov opened this issue Apr 13, 2024 · 1 comment

Comments

@ZH-Hristov
Copy link

I'm making a multi-jump script, and I've made myself some callbacks to make my life easier, but it seems like the game doesn't like it when I try to dispatch an event inside another event? (At least that is what my best guess is as to what the problem is)

I've uploaded all the required scripts in the zip below, and the relevant script is [mem]doubleJump.js at line 42.
If I remove the dispatchEvent everything is fine, but dispatching an event there, even if there are no listeners, freezes/crashes the game.

I've noticed the same also happens if I try to run an async function at that point.

requiredFiles.zip

@ZH-Hristov
Copy link
Author

Sorry, forgot to clarify. Game is VC classic.

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

1 participant