Massassi Forums Logo

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.

ForumsCog Forum → I need a cog that plays a .wav file when an object enters an area
I need a cog that plays a .wav file when an object enters an area
2001-08-09, 4:23 PM #1
I need a cog that plays a .wav file when an object enters an sector and play again in if the object reenters the sector.
My Site
2001-08-10, 4:02 AM #2
# Play a sound effect on entering a sector
#
# Raze 2001


symbols

sound enteringsound=yoursound.wav
sector sectortoenter linkid=1
message entered
end

code

entered:
if(GetSenderRef() != sectortoenter) return;
playsoundlocal(enteringsound, 1, 0, 0x100);
return;

end

I guess that should work..

-Raze
--
You are all just jealous because you can't hear the small voices!!

↑ Up to the top!