Skip to content

Instantly share code, notes, and snippets.

@nielsvaes
Created February 24, 2022 22:23
Show Gist options
  • Select an option

  • Save nielsvaes/abd6d3f319dba2cced2335018193f457 to your computer and use it in GitHub Desktop.

Select an option

Save nielsvaes/abd6d3f319dba2cced2335018193f457 to your computer and use it in GitHub Desktop.
DCS - RadioBeacon
-- Let's create a beacon for a unit in distress.
-- Frequency will be 40MHz FM (home-able by a Huey's AN/ARC-131)
-- The beacon they use is battery-powered, and only lasts for 5 min
local UnitInDistress = UNIT:FindByName("CRASHED HELICOPTER")
local UnitBeacon = UnitInDistress:GetBeacon()
-- Set the beacon and start it
UnitBeacon:RadioBeacon("MySoundFileSOS.ogg", 40, radio.modulation.FM, 20, 5*60)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment