46
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Well you have to create a datablock for the wav file. Then you reference that datablock in the serverplay3d. Ill write an example just this one time because you are starting and hopefully you will learn. Not always will you get a full example thoughCode: [Select]//Create the actual beep datablock
datablock AudioProfile(beepSound)
{
filename = "./Beep.wav";
description = AudioClosest3d;
preload = true;
};
//Create /beep
function servercmdbeep(%client)
{
//Only play if the player is spawned
if(isObject(%client.player))
serverplay3d(beepSound,%client.player.getPosition());
}
Code: [Select]//Create the actual beep datablock
datablock AudioProfile(beepSound)
{
filename = "./Beep.wav";
description = AudioClosest3d;
preload = true;
};
//Create /beep
function servercmdbeep(%client)
{
//Only play if the player is spawned
if(isObject(%client.player))
serverplay3d(beepSound,%client.player.getPosition());
}
This will play the actual beep at a certain position. Now all you have to do is throw this into a servercmd function and get a position from the client's playerUh, thank you... but that's not exactly what I'm looking forCode: [Select]serverplay3d(Beep_Checkout_Sound,%position);
Local IP. You need to get rid of the 1 (your router) and replace it with 5 (your computer.)And that's it?
Use 192.168.0.5 as the IP address under the port forwarding options. I'd also recommend disabling your firewall against port 28000 while you're hosting so that it's not blocking any incoming connection attempts.
The external end port should be 28000 as well.
The local IP seems to be aimed towards what is a standard default gateway, are you sure that's your computer's private IP? To check on Windows, push Windows Key + R, type CMD. Type "ipconfig" in the command prompt and push enter. Post a picture, or look for the IP that has the first three octets as the default gateway.
Uh... what.