Tool_QuerySoundLevel ( table)
Returns the sound SL of naval units
Parameters
- table { }
- targetunitname stringThe guid/name of the unit that is sensing the target.
- targetside string(Optional) name of unit side
-
aspect =
Aspect
'FRONT','SIDE','REAR','ALL'
(Optional) aspect to measure; REAR is default
-
frequency =
Freq
'VLF','LF','MF','HF'
(Optional) sound band of interest; LF is default
Returns
number Returns a numerical value representing the SL in the given band if ASPECT is not ALL
OR
{'front', 'side', 'rear' }
Returns a Lua table of SL values if ASPECT is ALL
Example
print(Tool_QuerySoundLevel({targetunitname="DDG 113 John Finn [Arleigh Burke Flight IIA Restart]", frequency='vlf', aspect='all'}))
print(Tool_QuerySoundLevel({targetunitname="DDG 113 John Finn [Arleigh Burke Flight IIA Restart]", frequency='vlf'})) ' as is
print(Tool_QuerySoundLevel({targetunitname="DDG 113 John Finn [Arleigh Burke Flight IIA Restart]", frequency='vlf', aspect='side'}))