Skip to content

Allow for triggering Events/writing Messages from script #528

Description

@PatrickChodowski

Is your feature request related to a problem? Please describe.
I found an use case when I would like to trigger an observer or write a message from script.

Describe the solution you'd like
Add a method to world type equivalent to https://docs.rs/bevy/latest/bevy/prelude/struct.World.html#method.trigger and https://docs.rs/bevy/latest/bevy/prelude/struct.World.html#method.write_message

Describe alternatives you've considered
I worked around it by converting a Message in my game to Component and spawned entities instead. Its ..okay as It was only one Message and not used much, but that would not scale well.

Additional context
Add any other context or screenshots about the feature request here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions