Usage:
ObjectTemplate.TriggerRadius
number
Argument values:
argument 1: | range is 10 to 275; most commonly 50 |
Description: Specifies an activation distance for a sound effect associated with an area, e.g. chirping birds, the guy stuck in the water tank at Salerno, crickets. The object itself is created in a level's StaticObjects.con file, the Environment.con file then Runs the sound effect file (e.g. river.con), and the sound effect file creates the sound effect object and defines its TriggerRadius. Bodies of water have a set of points defined for them with AddLinePoint.
Related properties: AddLinePoint, LoadSoundScript
Used in object types (and how often in each type): AreaObject (100%), simpleobject (3%)
Used in a total of 98 .con files: Anzio_river.con, Beach1.con, Beach2.con, Beach3.con, Beach4.con, Beach5.con, Biglake.con, Birdintree.con, Birds.con, Birds_and_trees.con, Church_bell.con, Coastline.con, Coastlineisle1.con, Coastlineisle2.con, Coastlineisle3.con, Coastlineisle4.con, Coastlineisle5.con, Crane_chains.con, Crickets.con, Easter.con, Harbor_waves.con, Hilfe.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, Seagulls.con, Siren.con, Smokeidlexpack.con, Telemark_river.con, Top_hill.con, Turbinesound.con, Waterunderbridge.con, Windybridge.con
Parent directories of these .con files: objects/Effects, Bf1942/Levels
Example: (from Bf1942/Levels/salerno/Sounds/Birds_and_Trees.con)
rem *** Birds_and_Trees ***
ObjectTemplate.Create SimpleObject Birds_and_Trees
ObjectTemplate.SaveInSeparateFile 1
ObjectTemplate.TriggerRadius 35
ObjectTemplate.LoadSoundScript Birds_and_Trees.ssc
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.