OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: remcen on 19 Jun 2005, 22:33:34

Title: sound not playing on engine start
Post by: remcen on 19 Jun 2005, 22:33:34
the subject title says it all, these damn scripts drive me insane :P
here's the respective code:

config:
Code: [Select]
class eventhandler
         {
engine="[_this select 0, _this select 1] exec ""\imuc_bmd\bmdstart.sqs"";";
         };
Code: [Select]
class CfgSounds
{
   class bmdstart
    {
         sound[]={"\imuc_bmd\bmdstart2.ogg",db+0,1};
         name = "bmdstart";
      titles[] = {};
    };
};
tried wav files and oggs, all 16 bit 44Hz mono

the script:
Code: [Select]
_bmd = _this select 0

#start
@(isengineon _bmd)
hint "start"
_bmd say "bmdstart"

#check
@(!(isengineon _bmd))
goto "start"
the hint isn't even displaying although it's all like seb müller did it for his dune buggy misfiring.
also tried @(isengineon _bmd == true) in the 3rd line