Jump to content

Recommended Posts

Posted (edited)

Hey all,

I've been trying to build a table of Units that have radars. I created a simple test mission (attached) that has a bunch of Groups (AWACS, Fighters, Transport Heli, Ticonderoga, EWR, Hawk Battery, NASAMS battery, etc). The mission simply iterates the various Groups and runs Unit.hasSensors( Unit.SensorType.RADAR ) on the various Units within. The results all seem correct for the Aircraft and Naval Units, but incorrect for the Ground units.

For example, all of the NASAMS and EWR units (including the NASAMS Search Radar and the two versions of the EWR AN/FPS-117 Radar Unit return FALSE for the radar check. On the other hand, every Unit in the Hawk Group(including the Launchers and C2 vehicle) returns TRUE for the radar check.

Edit: After some more investigation, it appears that the function only evaluates the FIRST UNIT in the Group. If the first unit has a radar, then EVERY unit in the group returns TRUE even if it doesn't actually have one. Similarly, if the first unit DOESN'T have a radar then each of the subsequent units is also regarded as being "radar-less."  I would assume that this isn't the intended behaviour since it clearly returns incorrect results.

@Flappie for visibility. 

image.png

Radar Network Test 01.miz

Edited by Pizzicato

i7-7700K @ 4.9Ghz | 16Gb DDR4 @ 3200Mhz | MSI Z270 Gaming M7 | MSI GeForce GTX 1080ti Gaming X | Win 10 Home | Thrustmaster Warthog | MFG Crosswind pedals | Oculus Rift S

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...