spinter Posted May 25, 2013 Posted May 25, 2013 Where am I doing wrong? function getUnitPos(unitName) local unit = Unit.getByName(unitName) local unitPos = nil if unit ~= nil then unitPos = unit:getPosition() end return unitPos end trigger.action.radioTransmission('test.ogg', getUnitPos('Pilot 1').p, 0, true, 118.000, 100) ====VIAF==== Spinter 155° "Pantere Nere" TsSimComms My Site aiupgrade.net
spinter Posted May 25, 2013 Author Posted May 25, 2013 do local radio_vector = Unit.getByName('Pilot 1'):getPosition() trigger.action.radioTransmission('test.ogg', radio_vector, 0, true, 118000, 100) end No Sound!! I can not. were able to explain to me if I'm wrong code? ====VIAF==== Spinter 155° "Pantere Nere" TsSimComms My Site aiupgrade.net
spinter Posted May 26, 2013 Author Posted May 26, 2013 none? ====VIAF==== Spinter 155° "Pantere Nere" TsSimComms My Site aiupgrade.net
Midnight Posted May 26, 2013 Posted May 26, 2013 I am a noob with this but have seen this used: trigger.action.radioTransmission('SirenLoop.ogg', PilotPosition, 0, true, 250000, 1000);
Recommended Posts