View Full Version : i need a COG where when an enemy dies, next level or cutscene will follow
Gorgi Knootewoot
03-31-2003, 11:37 AM
What do i need to put in a cog that when i kill a certain enemy, then a cutscene will follow. (Or the next level).
Yes, i know. I'm not that good in programming, and i tried searching the forums, but found nothing.
Please answer me. THANKS http://forums.massassi.net/html/smile.gif
------------------
[SF]pjb
03-31-2003, 12:52 PM
[code]
# Jedi Knight Cog Script
#
# Description
# Starts a new level when the thing is killed
#
# This Cog is Not supported by LucasArts Entertainment Co
symbols
thing killme
message killed
end
code
killed:
//If you want to compleate a objective put the goal with
//the 2 setting here. (see massassi tutor)
print("Misshion objective complte");
//pop in youown text above /\/\/\/\
sleep(2);
jkendlevel(1);
return;
end
------------------
I am pjb.
Another post......
another moment of my life wasted.....
[This message has been edited by GBK (edited March 31, 2003).]
[SF]pjb
03-31-2003, 01:01 PM
I hope yo'll realise that was the first cog i ever posted?
------------------
I am pjb.
Another post......
another moment of my life wasted.....
#03/2003 GBK
Symbols
Message Killed
Thing Victem
Int Dir=1
Flex Time=2
End
Code
Killed:
JKstringclear();
JKstringconcatasciistring("Your text here.");
JKstringoutput(-3, -1);
Sleep(Time);
JKendlevel(Dir);
Stop;
End
http://forums.massassi.net/html/tongue.gif
------------------
Createthingatpos(GBK, 0, '0 0 0', '0 0 0');
Gorgi Knootewoot
04-01-2003, 12:24 AM
Thanks guys. I will trie it. I'm sure it will work http://forums.massassi.net/html/smile.gif
------------------
Gorgi Knootewoot
04-01-2003, 01:20 AM
Yep, they worked. Thanks again.
------------------
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.