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 → I need a COG made for me please!
I need a COG made for me please!
2002-09-26, 9:07 PM #1
Can somebody make me a COG for JK, that when you kill someone, it prints mission failed, and restarts the level. I will give you credit in my readme when i release the level.
Remember I'm AKA Dark_Jedi_Yun.
Thanks!
Modded JK/quit -> Modded Wold3d/quit -> PKed on Rscape on God_Zodar and Sentanced/quit -> ???
2002-09-27, 5:12 AM #2
Umm . . . okay.


Code:
# 09/2002 GBK - Packman573@aol.com
Symbols
Message Killed
Thing Victem
End
Code
Killed:
JKstringclear();
JKstringconcatasciistring("Mission Failed.");
JKstringoutput(-3, -1);
Sleep(1);
JKendlevel(0);
Stop;
End



In your episode editor, GotoB will need to point back to this level.

------------------
I used to believe that we only want what we can't have. I was wrong. The truth is, the wonderful truth is, we only want what we think we can't have.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-09-27, 1:57 PM #3
SaberMaster showed me the light. Do it like this.
Code:
# Jedi Knight Cog Script
#
# [DP]
#

Symbols
Thing       player         local
Thing       target
Int         delay

Message     killed

End

Code
Killed:
   Player = GetLocalPlayerThing();
   Print("Mission Failed.");
   Sleep(delay);
   SetActorFlags(player, 0x400000);
   Return;

End
        
Code:
 So much simpler.  [http://forums.massassi.net/html/wink.gif] And you can also have 2 braches this way, instead of limiting yourself to 1.  [http://forums.massassi.net/html/smile.gif]

------------------
The Sniper Missions. Current project, The Sniper Missions

The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack

↑ Up to the top!