Game Development Community

Alx commands

by Tim Heldna · in Torque Game Engine · 04/30/2005 (3:47 am) · 2 replies

Does anyone have a list of all the 'alx' commands that can be used. I had a look around and couldn't find anything on this.

I know the basic ones, like alxPlay, alxStop, alxStopAll etc and was just wondering how many more there were.
Also if someone could either tell me, or point me in the right direction, as to different methods you can start and stop audio in Torque that would be great.

I have some new sounds for my GUI and need a way to start a sound on entering (pushing) a specific screen, stop the sound that was playing in the previous screen and so on. For example, i have some menu music that plays in the background on launching the game. That's fine, but lets say i press a button on the main menu that goes into a credits screen. I want a new sound to play on entering that credits screen and the menu music to stop. Clearly i'll need the reverse to happen on leaving the credits screen and returning back to the menu screen. I got this to work on entering the actual game, i just put something in one of the server scripts to stop all audio. Perhaps i can do the same thing for the GUI.

The above question in the 3rd paragraph isn't all that important to me, i'm sure i'll work it out if it's too hard for anyone to give an easy answer to. I would however be interested in hearing from someone regarding the top two paragraphs.

#1
04/30/2005 (4:50 am)
Disregard the entire 3rd paragraph in the post above, worked it out and i feel pretty stupid now cos it was so easy and the answer was right in my face. I just assigned a command on the credits button to stop audio.
#2
04/30/2005 (1:21 pm)
Glad you got it sorted out. :)

If you're curious, try using dumpFunctions - it should have a section with all the AL/ALX commands.