It refers to cab / interior camera. When you enter a cab / passenger view, the associated engine or wagon script will have the "OnCameraEnter" function invoked (if it exists). When leaving this camera (either to an external camera or another cab camera) that script will have OnCameraLeave invoked.Kariban wrote:*Scratches head*. Is that when they're onscreen or not, or when you hop down the train you're in. Still any new toys are pretty welcome.gypbrc wrote: - Added OnCameraEnter and OnCameraLeave for engine/wagon scripts
Code: Select all
OnCameraEnter(cabEndWithCamera, carriageCam)
cabEndWithCamera: 0 = none, 1 = front, 2 = back.
carriageCam: 0 if cab cam, 1 if carriage cam
no return value
OnCameraLeave()
no parameters, no return value
Thanks,
Ben