adding a loudspeaker with radius
No replies



18.11.19 06:12:19 am
eh! can someone help me add a loudspeaker with a radius of 200 at an object. I want to be able to start and stop the sound once its created.
EDIT:Never mind I figured it out...but thanks anyways. Anyone else searching for scripting a info_loudspeaker for their mod, here is my working example:
EDIT:Never mind I figured it out...but thanks anyways. Anyone else searching for scripting a info_loudspeaker for their mod, here is my working example:
Code:
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
local $x,$y,$z,$speaker;
$x=getx("self");
$z=getz("self");
$y=gety("self");
$speaker=create("info",47,$x,$z);
setpos "info",$speaker,$x,$y,$z;
info_loudspeaker $speaker,"sfx/mysound.wav",200;
starttrigger $speaker; //<----this starts the sound, use stoptrigger to stop it, or change the "file name" to make it blank " "
$x=getx("self");
$z=getz("self");
$y=gety("self");
$speaker=create("info",47,$x,$z);
setpos "info",$speaker,$x,$y,$z;
info_loudspeaker $speaker,"sfx/mysound.wav",200;
starttrigger $speaker; //<----this starts the sound, use stoptrigger to stop it, or change the "file name" to make it blank " "
edited 3×, last 18.11.19 11:46:43 am
The Survivalist_12-24-19 is now available. DOWNLOAD HERE
The Survivalist 12-24-19 | Performance-In options keep Water Detail off




