Jump to content

Loran_D

Member
  • Content Count

    2
  • Joined

  • Last visited

  • Medals

Community Reputation

0 Neutral

About Loran_D

  • Rank
    Newbie
  1. 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. 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. 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.
×