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 → add sound to cog
add sound to cog
2001-05-12, 11:10 PM #1
I wrote this
Code:
# Jedi Knight Cog Script
#
# A Cog by by SlingsRat
# 
# Creates a thing at a ghost location

symbols

thing		console			desc=console    
thing		createhere		nolink,desc=createhere

int		done=0		        local

template	tocreate   

message		activated

end

# ========================================================================================

code

activated:
	if(done == 1) Return;
     	done = 1;
        CreateThing(tocreate, createhere);
       	Return;

end


but I cant figure out how to add a simple beep when you activate the console. I'm sure this is easy and I cant figure out why nothing I've tried works!


------------------
Jedi Shopping Mall
JK:DFII Editing
ALHan
PSP
2001-05-13, 6:20 AM #2
Put this in the code:

PlaySoundThing(soundthing, player, 1.0, -1, -1, 0x80);

and this in the symbols:

sound soundthing=(name of the .WAV file)

↑ Up to the top!