Re: My COG


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]

Posted by JM on July 13, 1998 at 15:14:34:

In Reply to: My COG posted by Catmaster on July 13, 1998 at 14:46:48:


0 IS a flag....

: This is my first attempt at a COG, someone tell me why it does not work!

Try this:


===========================================
#Jedi Knight COG Script
#
#COG which when a player tries to open a door plays
#a locked sound
#and displays a message saying "Looks like someone
#dos'nt want company..."
#
#Made by Mailer Copyright Mailercorp 98 all rights #reserved
#
#==========================================

symbols

message activated

thing door1 nolink,desc=door1

sound locked=i00ky73t.wav local

end

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

code

activated:

PlaySoundLocal(locked,5,0x44);
Print("Looks like someone dosn't want company...")

Return;

end


Everything I changed is in red. It wasn't working because of the d, but getting the surface center of a thing (Not to mention its GETsurfacecenter) would have crashed the game.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]