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 → still no sound
still no sound
2001-02-26, 10:35 PM #1
I still cannot produce sound in a cog, I always write smthing like:

playsoundlocal
OR
Playsound(001stonedoor.wav)

Both stop the cog from working
Lets say for the sound it is called try.wav

how do I Place the sound in the cog , including what I need for code selection.
Code:
if(getThingFlags(source) & 0x8){
  do her}
elseif(getThingFlags(source) & 0x4){
  do other babe}
else{
  do a dude}
2001-02-27, 2:13 AM #2
Reletively simple there, your syntax is incorrect.
The correct syntax is (and it MUST be done this way):

Quote:
<font face="Verdana, Arial" size="2">
channel = PlaySoundLocal(wav,flex volume, flex pan ,int flags); pan is -1.0=full left , 1.0 full right , 0.0 center
</font>


goto http://www.code-alliance.com/~editors/jediknight/docs/jk_specs/jkspecs.htm for more info on all JK Cog Commands.


------------------
Black. His gloves of finest wool.
Black. His codpiece made of metal.
His horse is blacker than a hole.
His pot is blacker than his kettle.

Visit Virus Productions!
"And lo, let us open up into the holy book of Proxy2..." -genk
His pot is blacker than his kettle!

↑ Up to the top!