AreaObject Type

The AreaObject object type is created by ObjectTemplate.Create.

An AreaObject is used to create a area of sound in a level. For example, if you want to hear the sound of a shore line only around the points of the shore, you would create an AreaObject. This object is made of a list of points defining a polygon.

Used in a total of 72 .con files: Anzio_river.con, Beach1.con, Beach2.con, Beach3.con, Beach4.con, Beach5.con, Biglake.con, Coastline.con, Coastlineisle1.con, Coastlineisle2.con, Coastlineisle3.con, Coastlineisle4.con, Coastlineisle5.con, Easter.con, Harbor_waves.con, Island1.con, Island2.con, Island3.con, Island_shore.con, Island_shore2.con, Lake.con, Lake2.con, Lake3.con, Ocean1.con, Ocean2.con, Ocean3.con, Ocean4.con, Ocean5.con, Ocean6.con, Pond.con, River.con, River4.con, River5.con, River_salerno.con, River_santocroce.con, Rivermid.con, Riverside.con, Riverside2.con, Telemark_river.con, Waterunderbridge.con

Parent directory of these .con files: Bf1942/Levels

Example: (from Bf1942/Levels/Telemark/Sounds/Island_Shore2.con)
   rem *** Island_Shore2 ***
   ObjectTemplate.Create AreaObject Island_Shore2
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.TriggerRadius 50
   ObjectTemplate.LoadSoundScript Island_Shore2.ssc
   ObjectTemplate.AddLinePoint 0/0
   ObjectTemplate.AddLinePoint -2.72321/1.73828
   ObjectTemplate.AddLinePoint -4.59338/1.30835
   ObjectTemplate.AddLinePoint -7.93048/-0.732666
   ObjectTemplate.AddLinePoint -11.2491/-2.80176
   ObjectTemplate.AddLinePoint -13.4312/-6.05042
   ObjectTemplate.AddLinePoint -12.8685/-8.65491
   ObjectTemplate.AddLinePoint -11.942/-12.5441
   ObjectTemplate.AddLinePoint -11.2197/-15.1106
   ObjectTemplate.AddLinePoint -8.38336/-16.8405
   ObjectTemplate.AddLinePoint -5.20496/-17.8378
   ObjectTemplate.AddLinePoint -0.631897/-18.7646
   ObjectTemplate.AddLinePoint 2.53192/-17.7213
   ObjectTemplate.AddLinePoint 4.01019/-15.5049
   ObjectTemplate.AddLinePoint 4.7312/-12.9381
   ObjectTemplate.AddLinePoint 4.82275/-9.60681
   ObjectTemplate.AddLinePoint 3.81873/-6.43054
   ObjectTemplate.AddLinePoint 2.34875/-2.7135
   ObjectTemplate.AddLinePoint 0.486694/0.046875
   ObjectTemplate.AddLinePoint -1.84656/1.3374
   ObjectTemplate.AddLinePoint -5.16748/1.05176
   ObjectTemplate.AddLinePoint -8.74481/-0.624023
   ObjectTemplate.AddLinePoint -11.5807/-3.4447
   ObjectTemplate.AddLinePoint -13.1639/-7.06238
   ObjectTemplate.AddLinePoint -12.4297/-10.9932
   ObjectTemplate.AddLinePoint -11.6801/-14.2401
   ObjectTemplate.AddLinePoint -7.91064/-31.7585
   ObjectTemplate.AddLinePoint -9.75818/-35.2699
   ObjectTemplate.AddLinePoint -11.5588/-38.0579
   ObjectTemplate.AddLinePoint -12.9273/-42.5187
   ObjectTemplate.AddLinePoint -12.3403/-45.1197
   ObjectTemplate.AddLinePoint -11.9271/-47.7534
   ObjectTemplate.AddLinePoint -11.5246/-51.7328
   ObjectTemplate.AddLinePoint -10.8847/-54.9996
   ObjectTemplate.AddLinePoint -7.84363/-57.5957
   ObjectTemplate.AddLinePoint -4.76563/-60.1447
   ObjectTemplate.AddLinePoint -0.392212/-63.192
   ObjectTemplate.AddLinePoint 4.52802/-66.6252
   ObjectTemplate.AddLinePoint 7.26147/-68.5325
   ObjectTemplate.AddLinePoint 10.6188/-70.7067
   ObjectTemplate.AddLinePoint 13.8788/-71.4009
   ObjectTemplate.AddLinePoint 19.21/-71.2669
   ObjectTemplate.AddLinePoint 23.1169/-70.4291
   ObjectTemplate.AddLinePoint 27.1778/-68.1316
   ObjectTemplate.AddLinePoint 27.4878/-64.8256
   ObjectTemplate.AddLinePoint 25.9254/-61.1442
   ObjectTemplate.AddLinePoint 23.633/-57.0829
   ObjectTemplate.AddLinePoint 22.3319/-52.603
   ObjectTemplate.AddLinePoint 20.8787/-49.6088
   ObjectTemplate.AddLinePoint 18.4156/-46.4597
   ObjectTemplate.AddLinePoint 15.2968/-42.9887
   ObjectTemplate.AddLinePoint 13.1007/-40.4811
   ObjectTemplate.AddLinePoint 10.4371/-38.477
   ObjectTemplate.AddLinePoint 6.68665/-35.7006
   ObjectTemplate.AddLinePoint 3.04517/-34.0464
   ObjectTemplate.AddLinePoint -2.15991/-32.9279
   ObjectTemplate.AddLinePoint -6.12122/-33.4827
   ObjectTemplate.AddLinePoint -8.81866/-35.4346
   ObjectTemplate.AddLinePoint -10.8529/-38.0266
   ObjectTemplate.AddLinePoint -12.4833/-40.8947
   ObjectTemplate.AddLinePoint -12.8457/-44.8342
   ObjectTemplate.AddLinePoint -11.4911/-48.5492
   ObjectTemplate.AddLinePoint -10.7393/-53.1163
   ObjectTemplate.AddLinePoint -9.18713/-56.0479
   ObjectTemplate.AddLinePoint -6.97949/-58.541
   ObjectTemplate.AddLinePoint -3.6546/-60.7609
   ObjectTemplate.AddLinePoint 0.655273/-63.8969
   ObjectTemplate.AddLinePoint 5.75732/-67.0527
   ObjectTemplate.AddLinePoint 9.05945/-69.3104
   ObjectTemplate.AddLinePoint 11.9601/-70.9485

Properties used with this type of object:
   ObjectTemplate.AddLinePoint
   ObjectTemplate.Create
   ObjectTemplate.LoadSoundScript
   ObjectTemplate.SaveInSeparateFile
   ObjectTemplate.TriggerRadius


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