Marcelo peixoto Posted June 16, 2012 Report Posted June 16, 2012 Hi Pete! My FSuipc is now 4.836 I loop a sound to fire engine. function engfire(offset, value)if value ~= 0 then if ipc.readSB(0x0B20) == 1 then ref1=sound.playloop("jetone_fire" ,0 ,-60) ipc.sleep(500) endelse sound.stop(ref1) ipc.sleep(500)endendevent.offset(0x3366, "UB", "engfire")[/CODE]If the volume are positive, like 60, the loop works fine, if the volume are negative -60 to play only when the FS have the focus, the sound play like sound.play, no like sound.playloop.Tanks
Pete Dowson Posted June 16, 2012 Report Posted June 16, 2012 On 6/16/2012 at 3:44 AM, Marcelo peixoto said: If the volume are positive, like 60, the loop works fine, if the volume are negative -60 to play only when the FS have the focus, the soud play live soud.play, no like sound.playloop. Oops! Thanks for finding this. Silly little bug, a typo in the code. I'll fix it in 4.837, 3.999q and Wideclient 6.972, probably later today ... [LATER] Okay. Fixed, updates now available in Download Links subforum. Regards Pete
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now