Skip to content

Conversation

@WangleLine
Copy link

Just replacing id with self so you're passing on scope instead of an instance id.

In Vividerie I define all my items as structs in a global array, and then iterate over those structs and execute their processing functions. With this tiny change, it allows me to use event-horizon events inside those structs - They are not bound to any instance in the game.

Cheers

Just replacing id with self so you're passing on scope instead of an instance id
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

Successfully merging this pull request may close these issues.

1 participant