SonarObject Type

The SonarObject object type is created by ObjectTemplate.Create.

This object what Battlefield uses to display the "radar" in the mini-map. It reveals vehicles and other items. Submarines, destroyers, radars, and wasserfalls use this capability.

Used in a total of 3 .con files: Objects.con

Parent directories of these .con files: objects/Vehicles, Bf1942/Levels

Example: (from Bf1942/Levels/Battle_of_Britain/Objects/RadarTower/Objects.con)
   rem *** RadarTowerSonar ***
   ObjectTemplate.Create SonarObject RadarTowerSonar
   ObjectTemplate.DetectionRadius 400.0
   ObjectTemplate.EnableRadarMode 1
   ObjectTemplate.LoadSoundScript Sounds/sonardest.ssc

Properties used with this type of object:
   ObjectTemplate.Create
   ObjectTemplate.DetectionRadius
   ObjectTemplate.EnableRadarMode
   ObjectTemplate.LoadSoundScript
   ObjectTemplate.SaveInSeparateFile
   ObjectTemplate.ScanForEnemySonars


Go to the ObjectTemplate type list page, ObjectTemplate page, All Types list, Class list, CON file list, or Main scripting page.