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:
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 " "
edited 3×, last 18.11.19 11:46:43 am