Custom sounds for triggers

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Custom sounds for triggers

Post by mcunha98 »

Hi,

In paste i used the technique to play standard sounds of the MOH:AA using ScriptMaster.

But, i want need a custom sound, in mohaa\main\sound i put my sound file (make as pk3), and call scriptmaster to load sounds, but none play.

What is wrong ??? :cry:

Code: Select all

local.master = spawn ScriptMaster
//Example - it is work...
//local.master aliascache radio_snd sound/mechanics/MOH_Cello2.wav soundparms 0.5 0.0 1.0 0.0 256 256 auto loaded maps "dm moh obj train"
//my custom sound - 1
local.master aliascache radio_snd sound/mcunha98/cactus.wav soundparms 0.5 0.0 1.0 0.0 256 256 auto loaded maps "dm moh obj train"
//my custom sound - 2
local.master aliascache water_snd sound/mcunha98/waterlap.wav soundparms 0.5 0.0 1.0 0.0 256 256 auto loaded maps "dm moh obj train"
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Most likely the sound format. The files should be PCM 16-bit, mono, and 44100 or 22050 Hz.
Image
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

jv_map wrote:Most likely the sound format. The files should be PCM 16-bit, mono, and 44100 or 22050 Hz.

Image


How i edit this properties ??? :roll:
[/img]
Post Reply