Game Development Community

Music

by Chris Sargent · in Torque Game Engine · 09/14/2008 (5:21 pm) · 1 replies

As I stated in my last post I learnt how to put music into my main gui. The problem I have is that the music continues after I load a mission. I looked on TDN and found this:

Make it stop, oh God make it stop!
To turn it off (which you'll want to do once you go into a mission)



in client\mission.cs put:

alxStop($musicHandle);


in the function clientCmdMissionStart, like this:

function clientCmdMissionStart(%seq)
{
alxStop($musicHandle);
// The client recieves a mission start right before
// being dropped into the game.
}

The only problem I have with this is I can not find any mission.cs

Under client/scripts I have a missiondownload.cs but this is the only cs file i can find pertainint to a mission.

#1
09/15/2008 (6:04 am)
I'm using tge 1.5.2 if that helps as i'm not really sure what directory changes have taken place with this new version, if any.