SonarPos Property

Usage:
   ObjectTemplate.SonarPos boolean

Argument values:

argument 1:    1; most commonly 1

Description: This property sets whether the special graphics associated with the the SonarObject are displayed. This setting will work on any vehicle, provided it has a SonarObject on it.

Related properties: DetectionRadius, EnableRadarMode, ScanForEnemySonars

Used in object types (and how often in each type): PlayerControlObject (4%)

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

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

Example: (from objects/Vehicles/Sea/fletcher/Objects.con)
   rem *** Fletcher ***
   ObjectTemplate.Create PlayerControlObject Fletcher
   ObjectTemplate.SetNetworkableInfo FletcherBodyInfo
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.CullRadiusScale 5
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.Drag 3
   ObjectTemplate.Mass 2500000
   ObjectTemplate.HasArmor 1
   ObjectTemplate.Hitpoints 300
   ObjectTemplate.Maxhitpoints 300
   ObjectTemplate.Material 55
   ObjectTemplate.CriticalDamage 50
   ObjectTemplate.HpLostWhileCriticalDamage 5
   ObjectTemplate.ExplosionForceMod 10
   ObjectTemplate.DontClearTeamOnExit 1
   ObjectTemplate.AddArmorEffect 200 em_ExFumePOW 0/17/-9
   ObjectTemplate.AddArmorEffect 200 em_ExFumePOW 0/17/6
   ObjectTemplate.AddArmorEffect 150 em_ExFumePOW 0/17/6
   ObjectTemplate.AddArmorEffect 150 em_ExFumePOW 0/17/-9
   ObjectTemplate.AddArmorEffect 150 em_FletcherDamage 0/0/0
   ObjectTemplate.AddArmorEffect 150 em_FletcherDamage 0/0/20
   ObjectTemplate.AddArmorEffect 150 em_FletcherDamage 0/0/-30
   ObjectTemplate.AddArmorEffect 100 em_ExFumePOW 0/17/-9
   ObjectTemplate.AddArmorEffect 100 em_FletcherDamage 0/0/0
   ObjectTemplate.AddArmorEffect 100 em_FletcherDamage 0/0/20
   ObjectTemplate.AddArmorEffect 100 em_FletcherDamage 0/0/-30
   ObjectTemplate.AddArmorEffect 100 e_waterBoatSink 0/0/0
   ObjectTemplate.AddArmorEffect 50 em_FletcherDamage 0/0/0
   ObjectTemplate.AddArmorEffect 50 em_FletcherDamage 0/0/20
   ObjectTemplate.AddArmorEffect 50 em_FletcherDamage 0/0/-30
   ObjectTemplate.AddArmorEffect 50 e_waterBoatSink 0/5/0
   ObjectTemplate.AddArmorEffect 50 e_waterBoatSinkEf 0/-2/-5
   ObjectTemplate.AddArmorEffect 50 e_waterBoatSinkEf 0/-2/25
   ObjectTemplate.AddArmorEffect 50 e_waterBoatSinkEf 0/-2/-35
   ObjectTemplate.AiTemplate FletcherAI
   rem -------------------------------------
   ObjectTemplate.AddTemplate lodFletcher
   ObjectTemplate.AddTemplate Fletcher_Floater
   ObjectTemplate.SetPosition -1.999/7.5/50
   ObjectTemplate.AddTemplate Fletcher_Floater
   ObjectTemplate.SetPosition 2/7.5/50
   ObjectTemplate.AddTemplate Fletcher_Floater
   ObjectTemplate.SetPosition -4.999/7.5/17
   ObjectTemplate.AddTemplate Fletcher_Floater
   ObjectTemplate.SetPosition 5/7.5/17
   ObjectTemplate.AddTemplate Fletcher_Floater
   ObjectTemplate.SetPosition -4.999/7.5/-16.999
   ObjectTemplate.AddTemplate Fletcher_Floater
   ObjectTemplate.SetPosition 5/7.5/-16.999
   ObjectTemplate.AddTemplate Fletcher_Floater
   ObjectTemplate.SetPosition -1.999/7.5/-49.999
   ObjectTemplate.AddTemplate Fletcher_Floater
   ObjectTemplate.SetPosition 2/7.5/-49.999
   ObjectTemplate.AddTemplate FletcherDriverSoldierSpawn
   ObjectTemplate.SetPosition 0/5/32.5
   ObjectTemplate.AddTemplate FletcherSoldierSpawn
   ObjectTemplate.SetPosition 3/5/-43.699
   ObjectTemplate.AddTemplate FletcherSoldierSpawn
   ObjectTemplate.SetPosition -2.999/5/-43.699
   ObjectTemplate.AddTemplate FletcherLcvpSpawner
   ObjectTemplate.SetPosition 7.2/0.3/-43.699
   ObjectTemplate.SetRotation 6/0/0
   ObjectTemplate.AddTemplate FletcherLcvpSpawner
   ObjectTemplate.SetPosition -7.2/0.3/-43.699
   ObjectTemplate.SetRotation -5.999/0/0
   rem -------------------------------------
   ObjectTemplate.SetPcoId 0
   ObjectTemplate.AddPcoPosId 1
   rem ObjectTemplate.addPcoPosId 2
   ObjectTemplate.SonarPos 1
   ObjectTemplate.SetSoldierExitLocation -0.2/7.5/20 0/0/0
   ObjectTemplate.GUIIndex 40
   ObjectTemplate.SetVehicleIcon "Vehicle/Icon_fletcher.tga"
   ObjectTemplate.SetVehicleIconPos 95/95
   ObjectTemplate.SetNumberOfWeaponIcons 2
   ObjectTemplate.SetPrimaryAmmoIcon "Ammo/Icon_cannon.tga"
   ObjectTemplate.SetPrimaryAmmoBar ABReloadBarOnly
   ObjectTemplate.SetSecondaryAmmoIcon "Ammo/Icon_depthcharge.tga"
   ObjectTemplate.SetSecondaryAmmoBar ABAmmoBarReloadBar
   ObjectTemplate.SetCrossHairType CHTIcon
   ObjectTemplate.SetVehicleCategory VCSea
   ObjectTemplate.SetVehicleType VTDestroyer
   ObjectTemplate.SetToolTipType TTDestroyer
   ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_destoyer_32x32.tga"
   ObjectTemplate.SetMinimapIconSize 32


Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.