This function can be used to retrieve the ID of the script assigned as the end script for the given camera. If no script is assigned then the function will return -1.
Argument Description camera_id The unique camera ID value returned when you created the camera
Script ID or -1 if no script assigned
var scr =
if scr != scr_cutscene
The above code checks the script assigned as the begin script for the camera assigned to view port and if it is not "scr_cutscene" it is set to that script.