DarkCrow Posted November 7, 2015 Posted November 7, 2015 (edited) I'm building a mission where I'm hitting some ground targets with the Mig-21 and I want the "eyes on the ground" to say whether or not I hit the target. Messages after the target is down is a piece of cake, however I am pretty new at doing stuff like this and what I want to do is a little more involved. A message on missing the first target was simple because the FAB-250's are listed in the "bomb in zone" trigger so I: Created a trigger zone, first trigger condition was BOMB IN ZONE (FAB 250), Action was Flag On. Second trigger conditions were TIME SINCE FLAG (15 sec.), UNIT ALIVE. Action MESSAGE TO GROUP. Now the second target is going to be hit with the Kh-66 AGM which is not listed in the BOMB IN ZONE. So my plan is to do something like this (but don't know exactly how): First trigger conditions COCKPIT ARGUMENT IN RANGE with these parameters; Weapon Selection on th S-24 RKT, ASP mode switch set to Missiles\Rockets, Other ASP mode switch set to shooting, and finally the weapons release/launch on the flight stick pressed. The Trigger Action then would be FLAG ON and I would do the TIME SINCE FLAG and UNIT ALIVE again for the message. So I've looked through the mainpanel_init.lua and the clickabledata.lua and I don't know what to use and how to enter it into the COCKPIT ARGUMENT IN RANGE trigger. Any guidance would be greatly appreciated. Edited November 7, 2015 by DarkCrow
DarkCrow Posted November 7, 2015 Author Posted November 7, 2015 (edited) These are the lines I believe I need to reference from the clickabledata.lua: elements["PNT_235"] = multiposition_switch(LOCALIZE("Weapon Selector"),devices.WEAPON_CONTROL, device_commands.ASPlauncherSelect, 235, 11, 0.10, true), elements["PNT_242"] = default_2_position_tumb(LOCALIZE("ASP Mode - Bombardment/Shooting"),devices.ASP, device_commands.ASPbombStrelbSelect,242), elements["PNT_243"] = default_2_position_tumb(LOCALIZE("ASP Mode - Missiles-Rockets/Gun"),devices.ASP, device_commands.ASPmissileGunSelect,243), elements["PNT_382"] = default_button(LOCALIZE("Release Weapon"),devices.WEAPON_CONTROL, device_commands.PuskBtn,382) -- stick I think the large number is the Argument Range ID but how to I know the Min and Max range values to enter to set the condition as a specific switch selection? I would probably want to add other switches to insure that the message is only triggered when there is a definite launch, such as the Pylons being powered, weapon mode in air to ground mode, etc. I'll add those once I learn how to do this though. Edited November 7, 2015 by DarkCrow
Recommended Posts