Author Topic: Command Sounds  (Read 1117 times)

Just curious what exactly would be the script to make this for example

Player 1 types /Blah
Then the script will play a sound that /blah triggers which will be heard to all players nearby?

What would be the script to make this possible?

Try lookking into the default emote_exclamation or whatever it is called?
edit: i think it is emote_alarm actually

Try lookking into the default emote_exclamation or whatever it is called?
edit: i think it is emote_alarm actually
Ive looked at that beside from the whole debris and what not im still very clueless as to where to start?

Code: [Select]
function serverCmdBlah(%client)
{
if(isObject(%obj = %client.player))
{
serverPlay3D(YourSoundDatablock, %obj.getPosition());
}
}

Code: [Select]
function serverCmdBlah(%client)
{
if(isObject(%obj = %client.player))
{
serverPlay3D(YourSoundDatablock, %obj.getPosition());
}
}
Oh thank youuu!

Where do i include the part for the .wav?

is it "YourSoundDatablock"?

Oh thank youuu!

Where do i include the part for the .wav?

is it "YourSoundDatablock"?

That's why he put "YourSoundDatablock."