Please note that to get user defined function (="original" function that is not listed in Command Lua document) to work, you have to declare the function first, usually when scenario is loaded.
Looks like finction is taken from some of Gunner's Med Fury scenario. So, please check event named "Event - Load all Functions". This event, triggered every time scenario is loaded, will decleare all functions used in scenario.
Functions are included in Event action "Action - Load all Functions" Lua script. Copy & paste all script text to text editor, then find the function named CreateDownedPilotFromTriggerUnit(triggerUnit). As this function itself references another user defined functions (and they as well references the other...), you need other functions too.
Again paste all script text for event action that will be fired when scenario is loaded. Note this event is separate from Downedpilot ejection event that will actually run the function.
Asking Gunner (author of epic Fury series) or Whicker (
original (revised) script author) will be best to understand how function works, but I could say some notes:
-You will need side named "Marker" to generate RPs for SAR event.
-Your note about using separate DBID for CWDB/DB3K scenario is right. There is ScenEdit_AddUnit() first part of the function, so replace DBID to corresponding one.