Problem with new sound emitter.
by Anthony Rosenbaum · in Torque Game Engine · 07/17/2003 (12:50 pm) · 0 replies
Well I am currently adding a new sound for the player class, basically it is triggered when a player is targeted with a particular type of weapon (seeker).
I belive I have eveything set up correctly.
The weapon changes a boolean on the player, if targeted. This boolean then is tested durring the player's cycle and turns the sound on an off accordingly.
But I am running into some bugs.
My first buf was that it played on the server any time someone was locking.
Well I fixed that by surround the code with an !isServerObject() call. Which seems to work.
Now, I getoutOfBounds() error on the server if the server throws a flare. Now the flares (basicallly an item with heat, and a DBLight attached), are totally unattached to the sound.
What is most peculiar, usually when I crash out the debugger pops up and tells me something even if it just displaying adresses, but this crash is just an error window.
This is my first attempt with sounds I so might be totally wrong in my approach, could anyone give me the low down on how sounds work with Torque?
I belive I have eveything set up correctly.
The weapon changes a boolean on the player, if targeted. This boolean then is tested durring the player's cycle and turns the sound on an off accordingly.
But I am running into some bugs.
My first buf was that it played on the server any time someone was locking.
Well I fixed that by surround the code with an !isServerObject() call. Which seems to work.
Now, I getoutOfBounds() error on the server if the server throws a flare. Now the flares (basicallly an item with heat, and a DBLight attached), are totally unattached to the sound.
What is most peculiar, usually when I crash out the debugger pops up and tells me something even if it just displaying adresses, but this crash is just an error window.
This is my first attempt with sounds I so might be totally wrong in my approach, could anyone give me the low down on how sounds work with Torque?
About the author