Skip to content

Callbacks #7

@Rolln-dev

Description

@Rolln-dev

I'm not sure how to approach the callbacks. As the user does not call these functions but actually has to create the functions, not sure how this can be done.

Any thoughts?

Example user script would look something like this:

local simulationCallbacks = {}

function simulationCallbacks.onMissionLoadBegin()
    log.write('CALLBACKS', log.INFO, 'onMissionLoadBegin')
end

DCS.setUserCallbacks(simulationCallbacks)

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