Trigger camera when RTL flight mode activated

Can anyone tell me if there is a way to trigger camera every time RTL flight mode is activated? I am using my drone to pull a rope across a canyon, and releasing via servo configured as camera trigger. If RTL is triggered because of a failsafe, I want it to release rope so it doesn’t crash when rope becomes snagged coming home.

You should be using the gripper function for this, not the camera function. But nonetheless, no there is no failsafe action that includes taking a picture or releasing a gripper payload.

You could probably accomplish this with the new scripting system.