There is still this radar type radius around the unit that is capable of viewing enemy units. Although the unit is deactivated, has its line of sight, radar, and air line of sight at 0, it can see buildings and air units as well as shields. An image is attached of exactly what I mean. In the image, my allied color is blue and the enemy is yellow. Even though there are no blue units capable of seeing the enemy air units, they are still visible.
Here's a snippet of the code I'm using (There originally was much less, but I was hoping some of the extras would turn off whatever I'm combating):
Code: Select all
Spring.SetUnitSensorRadius(unitID, "los", 0)
Spring.SetUnitSensorRadius(unitID, "airlos", 0)
Spring.SetUnitSensorRadius(unitID, "radar", 0)
Spring.SetUnitSensorRadius(unitID, "radarJammer", 0)
Spring.SetUnitLosState(unitID, Spring.GetUnitAllyTeam(unitID), {los = false, radar = false, prevLos = false, contRader = false})
Spring.SetUnitNoSelect(unitID, true)