Can somebody make me a cog that plays a sound in a sector looping, that goes ON TOP of the sector sound i have set up? Thank you, you will get credit.
This is the static archive of the Massassi Forums. The forums are
closed indefinitely. Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.

#01/2002 GBK
Symbols
Message Startup
Message Entered
Message Exited
Thing Player Local
Sector Sec
Sound Loop
Int Channel=-1 Local
End
Code
Startup:
Player = JKgetlocalplayer();
If(Getthingsector(Player) == Sec) {
Channel = Playsoundthing(Loop, Player, 1.0, -1, 20, 1); }
Stop;
Entered:
If(Getsenderref() != Sec) Stop;
Channel = Playsoundthing(Loop, Player, 1.0, -1, 20, 1);
Stop;
Exited:
If(Getsenderref() != Sec) Stop;
Stopsound(Channel, 0.1);
Stop;
End