Well heres a .cog that plays a .wav as a background soundtrack. There is a problem with the volume however. When the level first starts, it plays fine with normal volume. When the player dies, however, and the level restarts, the song restarts and the volume is reduced drastically. I have no idea why this happens, but maybe someone here can figure it out:
# Jedi Knight Cog Script
#
# sndtrack.cog
#
#
#
# This Cog is Not supported by LucasArts Entertainment Co
symbols
message startup
sound music=fanfare2.wav
int player local
end
# ========================================================================================
code
startup:
player = GetLocalPlayerThing();
playsoundlocal(music, 1, 0, 0x1);
return;
end
# Jedi Knight Cog Script
#
# sndtrack.cog
#
#
#
# This Cog is Not supported by LucasArts Entertainment Co
symbols
message startup
sound music=fanfare2.wav
int player local
end
# ========================================================================================
code
startup:
player = GetLocalPlayerThing();
playsoundlocal(music, 1, 0, 0x1);
return;
end
"Flash like daybreak to the fray"
Raccoonking: Deeznuts are tasty!http://www.geocities.com/joshroxby/
Raccoonking: Deeznuts are tasty!http://www.geocities.com/joshroxby/