You can trigger the distance to target, while your camera is locked on a unit. Probably by a chat message:
Event: A player enters chat message "-cam" as a substring
Action: Set distance to target to (substring of entered chat message 6, 9)
This means, when you type "-cam xxxx", the camera distance is set to xxxx (which is every number between 1000 and 9999).