So I'm trying to replace the gorgons titans with the rhinos ATGMs. Currently I'm running the following code:
_vehicle removeWeapon "missiles_titan";
_vehicle addWeapon "cannon_120mm";
_vehicle addMagazine "4Rnd_120mm_LG_cannon_missiles";
_vehicle addWeaponTurret ["Laserdesignator_vehicle",[0,0]];
_vehicle addMagazineTurret ["Laserbatteries",[0,0]];
_vehicle enableVehicleSensor ["LaserSensorComponent",true];
_vehicle enableVehicleSensor ["DataLinkSensorComponent",true];
[_vehicle, ] enableInfoPanelComponent ["SensorsDisplayComponent", "SensorDisplay", true];
[_vehicle, [0,0]] enableInfoPanelComponent ["SensorsDisplayComponent", "SensorDisplay", true];
Now the problem is that I cannot open the sensor display neither as gunner nor as commander. And I can't seem to lock onto the commander's laser.
So my question, can I make what I'm trying to do work? And how would I go about doing that?
Another solution would be this:
_AI action ["TakeWeapon",backpackContainer _AI,"hgun_P07_F"];
If the AI has a P07 in the backpack he will first play some default "take" action and then equip the pistol, if currently no other gun has been equipped.