English adding a loudspeaker with radius

No replies
Goto Page
To the start Previous 1 Next To the start
Up
JasJack67
Super User
Offline Off
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.

More >


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
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 " "
edited 3×, last 18.11.19 11:46:43 am
The Survivalist_11-28-19 is now available. DOWNLOAD HERE >The Survivalist 11-28-19 | Performance-In options keep Water Detail off
To the start Previous 1 Next To the start