OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Dagon on 24 Sep 2005, 03:47:48

Title: Playing built-in soundfiles
Post by: Dagon on 24 Sep 2005, 03:47:48
How can I define the built-in BIS sounds in my description.ext folder without having to add them to each mission?

For this mission in particular, I need the "AK burstfire" sound effect, yet I don't know how to define it without getting the soundfile itself first.
Title: Re:Playing built-in soundfiles
Post by: THobson on 24 Sep 2005, 13:16:45
Generally I do not think it is posible, I have tried myself with different sounds and the only way I could do it was to convert the sound to an ogg file and put it in the sounds folder.  For a weapon you are in luck.  You can get someone to fire it in the way you want like so:

murderer2 fire ["M16","Burst"]
murderer2 fire ["AK74","Burst"]

(I didn't know which wepon the guy has so he gets both instructions)
Title: Re:Playing built-in soundfiles
Post by: 456820 on 24 Sep 2005, 19:29:26
im sure there are some Ak and M16 shots in the Enviromental sounds section of a trigger but it keeps playing and im not sure how to tell it to stop
but have a look it might be there
Title: Re:Playing built-in soundfiles
Post by: THobson on 24 Sep 2005, 19:40:05
You can't tell the environmental trigger sounds to stop.

But you could setPos the trigger away