Question about playing 3d sounds
by Mike Stoddart · in Torque Game Engine · 08/01/2002 (1:41 pm) · 0 replies
I'm using the following code to play a 3d sound on all clients:
The sound plays, which is just fantastic, but what happens if the player moves before the sound has finished? Will the sound still be playing at the it was started (now behind the player?), or will it follow the player?
I've tried it using both pla3d and ServerPlay3D, but I got the impression (difficult testing this on your own!) that the sound doesn't follow the player.
Each sound is usually between 0.5 and 2.5 seconds long.
Thanks
%transform = %client.player.getTransform();
%client.play3d(%voiceName, %transform);
//ServerPlay3D(%voiceName, %transform);The sound plays, which is just fantastic, but what happens if the player moves before the sound has finished? Will the sound still be playing at the it was started (now behind the player?), or will it follow the player?
I've tried it using both pla3d and ServerPlay3D, but I got the impression (difficult testing this on your own!) that the sound doesn't follow the player.
Each sound is usually between 0.5 and 2.5 seconds long.
Thanks