Hey do you think this is going to work


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

Posted by Pugi on October 18, 1998 at 23:53:49:

Hi guys,

I finally have goals in my level but I'm not sure
if my cog is written correctly. It's supposed to
accomplish a goal when you've killed 3 darkjedi.

Take a peek. I'd like any help possible.
Yeah, I know. I never ended up using the linked cogs in my cog.
These cogs are supposed to be the darkjedi cogs. In the
darkjedi cogs under Killed: message, I have :

cog deadjedi linkid=1
SendMessage(1,killed);

Here's the cog.
Pugi

#-----------------------------------------------
symbols
message killed
thing player local
sound goalsnd=Accomplish1.wav local
cog jedi_1 linkid=1
cog jedi_2 linkid=2
cog jedi_3 linkid=3
int deadguys=0 local

end

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

code
startup:
player = GetLocalPlayerThing();
Return;
killed:
deadguys =deadguys+1;
if (deadguys==3)
{ jkPrintUNIString(player,COG_00350);
SetGoalFlags(player, 2, 2);
PlaySoundThing(goalsnd, player, 1.0, -1, -1, 0);
}
Return;

# ........................................................................................

end




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 ]