Skip to content

Triggering callbacks from within BMS scripts #389

Open
@Peepo-Juice

Description

@Peepo-Juice

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions