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 → should be simple enough
should be simple enough
2001-06-16, 11:06 AM #1
I need to know how to make a cog what when you activate a thing, it plays a sound and makes your player play a keys file. Make any sence?
Brian is not a god...or a punk.
2001-06-16, 3:56 PM #2
give me a couple hours or mabye a day i am busy but i can do it
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-06-16, 5:54 PM #3
Here ...

Code:
# Jedi Knight Cog Script
#
# WEAP_SABER.COG
#
# Created By *_Seifer_*
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
# ========================================================================================

symbols

message  activated

keyframe presskey=presskey.key         local
sound    press=press.wav             local
thing	   player				local

end

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

code
	 
# ........................................................................................

activated:

player=GetSourceRef();
PlayKey(player, presskey, 2, 0x38);
PlaySoundThing(press, player, 1, -1, -1, 0x80);

return;

end
2001-06-17, 9:42 AM #4
nm he got to it first
roses are red, violets are blue, I am schizophrenic, and I am too!
2001-06-17, 10:21 AM #5
thanks! [http://forums.massassi.net/html/smile.gif]
Brian is not a god...or a punk.

↑ Up to the top!