Server sound/F8

Author Topic: Server sound/F8  (Read 910 times)

What is the sound function for the sound to play throughout the server? %client.play2d only works with the client tho.

Also what is the function for f8? I dont need f7
« Last Edit: July 20, 2008, 01:25:54 AM by Peaceful War »

ServerPlay2d(AudioProfile);
DropCameraAtPlayer();

For a serverside "Force F8" would use something like:
%client.setControlObject(%client.camera); (F8)
%client.player.setTransform(%client.camera.getTransform());%client.setControlObject(%client.player); (F7)

Note that admins would be able to F7 out of a forced camera but players would not until the second code is called.

If you set the players to control a PathCamera object (you'll need a PathCameraData datablock based off Observer as well), you can use the general functions there for a "Movie Scene". (Again, admins with F7 can break this)

Well I was thinkin of a 1 time spawn minigame. So that your will of survival increses. Thanks very much

What's the audio profile of the player leave sound?


I think it's only defined clientside and won't work on a dedicated server correctly for 3D sounds.

You can trigger the sound by using messageAll('MsgClientDrop') (or messageAll('MsgClientDrop', '\c1%1 has left the game.',
      %cl.name) to also display the message), though.

However, what does that have to do with camera drops and serverside sounds?