Game Development Community

Player Spawn Sound

by Chris "C2" Byars · in Torque Game Engine · 07/30/2005 (7:58 am) · 2 replies

I've been at it for nearly two hours trying to figure out how to cause a 3D sound to be played when and where a player spawns. What is the syntax/command to do this the way it needs to be done?

#1
07/30/2005 (8:27 am)
I'm looking at the starter.fps example game, so it might be a bit different.

Have you tried playing a sound in the createplayer function? (in the game.cs file, in the server folder)
#2
07/30/2005 (9:36 am)
That is where it should be done, I thought. Yes, of course, I have tried a lot of attempts to play a sound in the createplayer function, to no avail.

I put

ServerPlay3D(SpawnSound,%spawnPoint);

In there, but it seemed to only play the sound on a random basis, not every time the player spawned or re-spawned.