Loran_D 0 Posted October 20, 2020 (edited) Hello! I'll start a little from afar. In my mission, I decided to disable thermal imaging optics for M1117 ASV from the RHS mod. For this I used the command "disableTIEquipment". And everything would be fine, but the display built into the equipment continued to display the thermal image. A couple of minutes on google and I found out that this is an old problem. I decided to somehow fight it. A few hours on Google and I learned about procedural textures, pip screens, etc. Then I decided to use the "setPiPEffect" command. But it requires a "rendertarget", which I didn't know. I decided to look at the config.cpp of M1117. I unpacked the addon and, to my disappointment, did not find the class I needed. Spoiler class RenderTargets { class mirrorL { renderTarget="rendertarget0"; class CameraView1 { pointPosition="PIP0_pos"; pointDirection="PIP0_dir"; renderVisionMode=4; renderQuality=2; fov=0.34999999; }; BBoxes[]= { "PIP_1_TL", "PIP_1_TR", "PIP_1_BL", "PIP_1_BR" }; }; class mirrorR { renderTarget="rendertarget1"; class CameraView1 { pointPosition="PIP1_pos"; pointDirection="PIP1_dir"; renderVisionMode=4; renderQuality=2; fov=0.34999999; }; BBoxes[]= { "PIP_2_TL", "PIP_2_TR", "PIP_2_BL", "PIP_2_BR" }; Then I found a version of this addon prior to including it in RHS. And lo and behold, there is a class for some reason. Spoiler class RenderTargets { class commander_display { renderTarget="rendertarget2"; class CameraView1 { pointPosition="PIP2_pos"; pointDirection="PIP2_dir"; renderVisionMode=2; renderQuality=2; fov=0.5; }; }; class mirrorL { renderTarget="rendertarget0"; class CameraView1 { pointPosition="PIP0_pos"; pointDirection="PIP0_dir"; renderVisionMode=4; renderQuality=2; fov=0.34999999; }; }; class mirrorR { renderTarget="rendertarget1"; class CameraView1 { pointPosition="PIP1_pos"; pointDirection="PIP1_dir"; renderVisionMode=4; renderQuality=2; fov=0.34999999; }; }; I entered "rendertarget2" setPiPEffect [0]; in the debug console and it started working, the thermal imager switched to normal image mode. But when entering the gunner, the screen broke. And after leaving and entering the vehicle, this again became a thermal imager. I decided to use addEventHandler ["GetIn", { }]; , but it didn't work correctly. After that, I found out about the CBA and used the XEH. Created a class in the description.ext. class Extended_GetIn_EventHandlers { class rhsusf_M1117_base { class rhsusf_M1117_base_getin { GetIn = "'rendertarget2' setPiPEffect [0];"; }; }; }; But it still didn't work. But it continues to work fine from the debug console. I have been trying to solve this problem for the second week, but nothing works. Of course, I learned a lot in the process, but the problem was not solved. P.S. Sorry for my English. Edited October 20, 2020 by Loran_D Share this post Link to post Share on other sites