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)
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: