PDA

View Full Version : lua script



bindook
08-15-2015, 12:29 AM
hi all,
I'm trying to setup a switch in the flightdeck to run a pax briefing in the back ground when activated.

But having trouble getting it going.


The switch Is setup in fscuip.

The script i am using is;

Sound.play("LH", 1, 75, -1)

below is the report from fscuip

381813 LUA.0: beginning "C:\FSX\Modules\Briefing.lua"
381813 LUA.0: C:\FSX\Modules\Briefing.lua:1
381813 LUA.0: Global: ipcPARAM = 0
381813 *** LUA Error: C:\FSX\Modules\Briefing.lua:1: attempt to index global 'Sound' (a nil value)
381813 LUA.0: ended "C:\FSX\Modules\Briefing.lua"

any ideas?

Thanks

Michael

bindook
08-15-2015, 03:09 AM
solved the issue