Jump to content

Recommended Posts

Posted

I am having an issue with creating a radio transmission in a script:

 

From the wiki:

function trigger.action.radioTransmission(string fileName, Vec3 point, enum radio.modulation modulation, boolean loop, number frequency, number power)

 

Problem is with the modulation. Neither the documented enum radio.modulation works (global value radio is unknown), nor calling it with true or false as posted here works.

 

What is the correct syntax here?

aka: Baron

[sIGPIC][/sIGPIC]

  • 3 weeks later...
Posted
I am having an issue with creating a radio transmission in a script:

 

From the wiki:

function trigger.action.radioTransmission(string fileName, Vec3 point, enum radio.modulation modulation, boolean loop, number frequency, number power)

 

Problem is with the modulation. Neither the documented enum radio.modulation works (global value radio is unknown), nor calling it with true or false as posted here works.

 

What is the correct syntax here?

 

I got it to work with numbers 0 and 1 for AM and FM, respectively.

[sIGPIC][/sIGPIC]

 

Intel Core I7 4820K @4.3 GHz, Asus P9X79 motherboard, 16 GB RAM @ 933 MHz, NVidia GTX 1070 with 8 GB VRAM, Windows 10 Pro

Posted

It's not throwing any error message at me, but I still can't get it to work.

 

trigger.action.radioTransmission('message.ogg', trigger.misc.getZone('New Trigger Zone').point, 0, false, 124000, 100)

 

I tried both 0 and 1 and the soundfile is definitely in the mission

Anything stupid that I am missing here?

aka: Baron

[sIGPIC][/sIGPIC]

  • 4 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...