Skip to content

Triggering callbacks from within BMS scripts #389

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

Open
Peepo-Juice opened this issue Mar 24, 2025 · 0 comments
Open

Triggering callbacks from within BMS scripts #389

Peepo-Juice opened this issue Mar 24, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Peepo-Juice
Copy link
Contributor

Peepo-Juice commented Mar 24, 2025

Request

Provide an API similar to this:

trigger_event("EventHandlerLabel", script_entity, args, script_id)

Which leads to the provided event handler being triggered. Target capabilities should match the Recipients enum.

Describe the solution you'd like

  • run_event_deferred: executes when the current callback ends. No frame delay
  • run_event: executes immediately, possibly returning a result.
  • Take into account the possibility that the triggered event might also lead to another event being triggered. If it can lead to a chain like that, then we also need to take into account infinite loops.
@makspll makspll added the enhancement New feature or request label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants