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 → cogs and sound
cogs and sound
2000-12-23, 7:22 AM #1
How can you make it so when the player enters a sector a sound is played once?
"Intelligent people know of what they speak; fools speak of what they know."

- Minchas Shabbos Pirkei Avos 3:18 / Ethics Of The Fathers
2000-12-23, 12:53 PM #2
#Jedi Knight Cog Scrpit
# Made by <insert name here>

code
message entered
sound sound=.wav
sector sector linkid=1
end
#------------------------------------
entered:
if (GetSenderId() == 1)
{
PlayerSoundLocal(sound, 1.0, 0, 0x4);
}
Return;
end

Hope that works

------------------
Keith: "Perhaps there was an age in which people had Knowledge of Magic..."

[This message has been edited by Keith8_8000 (edited December 23, 2000).]
Keith: "Perhaps there was an age in which people had Knowledge of Magic..."
JK cogs
2000-12-23, 1:10 PM #3
What is the linkid equivalent to? Is it equal to the sector number?
sector sector linkid=1
"Intelligent people know of what they speak; fools speak of what they know."

- Minchas Shabbos Pirkei Avos 3:18 / Ethics Of The Fathers
2000-12-23, 2:16 PM #4
No, the second sector is the sector number. put an = after the second sector.

-Jipe
2000-12-23, 5:56 PM #5
Thanks Jipe.
"Intelligent people know of what they speak; fools speak of what they know."

- Minchas Shabbos Pirkei Avos 3:18 / Ethics Of The Fathers
2000-12-23, 7:37 PM #6
Ummmmm... if you wanted to play once and only once then use this

#Jedi Knight Cog Scrpit
# Made by <insert name here>
code
message entered
sound sound=.wav
sector sector linkid=1
int done=0 local
end
#------------------------------------
entered:
if (done = 0)
{
if (GetSenderId() == 1)
{
PlayerSoundLocal(sound, 1.0, 0, 0x4);
}
done = 1;
}
Return;
end


------------------
Keith: "Perhaps there was an age in which people had Knowledge of Magic..."

[This message has been edited by Keith8_8000 (edited December 23, 2000).]
Keith: "Perhaps there was an age in which people had Knowledge of Magic..."
JK cogs

↑ Up to the top!