buffer to the script's name if function was successful and the name is valid, nullptr otherwise. The user is in charge of releasing the returned buffer with simReleaseBuffer
scriptHandle: handle of the script, or sim.handle_self for the handle of the current script
Lua return values
scriptName: name of the script if associated with a scene object, empty string if the script is the main script, or the name of the add-on if the script is an add-on.