vehicle.lights.sounds, "switchLight" doesn't exist

Please report new found bugs in this forum and confirm that you were able to reproduce a bug.
You can find all information in "How to report a bug"
Mantrid
Posts: 32
Joined: Sat Sep 19, 2020 7:07 am
Contact:

vehicle.lights.sounds, "switchLight" doesn't exist

Post by Mantrid »

The base game vehicles refer to "switchLight" in vehicle.lights.sounds, but it doesn't appear to exist. The actual setting is called "toggleLights" as per line 276 of the documentation.

Adjusting to the correct setting provides a click sound when turning lights on and off, although oddly also when switching to or otherwise entering the vehicle. However, the click is rather loud, so I've used the following settings to tone it down.

Code: Select all

 <sounds>
  <toggleLights linkNode="0>" file="$data/sounds/vehicles/switch/switch_01.wav">
   <volume indoor="0.10" outdoor="0.05"/>
   <pitch indoor="0.4" outdoor="0.4"/>
   <lowpassGain indoor="1.0" outdoor="0.1"/>
  </toggleLights>
  <turnLight template="SWITCH_TURNLIGHT" linkNode="0>"/>
 </sounds>
The entry most vehicles have is

Code: Select all

 <sounds>
  <switchLight template="SWITCH_01" linkNode="0>" />
  <turnLight template="SWITCH_TURNLIGHT" linkNode="0>" />
 </sounds>
Website, Facebook, Youtube, ModHub, Discord user: Ford Prefect#5243 on Giants Discord