Axel Reinemuth Posted September 23, 2015 Report Posted September 23, 2015 Hi, I'm looking for a way to activate a pre-defined camera using a tool I'm writing in C# I'd like to activate for example "[CameraDefinition.005]", which is defined in the aircraft.cfg of this aircraft, using a button on my programm Is this or something similar possible? I'm using P3D 2.5 and the latest FSUIPC Version 4.944 Best regards Axel R
Paul Henty Posted September 23, 2015 Report Posted September 23, 2015 There are standard FSX/P3D controls to set the view to cameras 0 to 9. They are listed in the 'List of FSX and P3D Controls.pdf" document: 66851 VIEW_CAMERA_SELECT_166852 VIEW_CAMERA_SELECT_266853 VIEW_CAMERA_SELECT_366854 VIEW_CAMERA_SELECT_466855 VIEW_CAMERA_SELECT_566856 VIEW_CAMERA_SELECT_666857 VIEW_CAMERA_SELECT_766858 VIEW_CAMERA_SELECT_866859 VIEW_CAMERA_SELECT_966860 VIEW_CAMERA_SELECT_0 You can send these controls via offset 3110. Declare as an 'int' and write-only: private Offset<int> sendControl = new Offset<int>("SendControl", 0x3110, true); Then when you want to switch the view assign the new number and process the "SendControl" group: (This example is for camera 5) sendControl.Value = 66855; FSUIPCConnection.Process("SendControl"); Paul
Axel Reinemuth Posted September 24, 2015 Author Report Posted September 24, 2015 It's working, thanks a lot :D At first I didn't add "HotkeySelect=x" to the aircraft.cfg, but after adding it, everything worked fine. Thanks again
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now