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 → Force Fields
Force Fields
2002-03-14, 10:40 AM #1
ok, in this level i am making, i was going to make some remote droids drop from the ceiling when a button was pushed and attack whoever pushed it. What i planned to do was have them pinned up in the top of the level with a forcefield, but the I need the field to automatically cut on when the game loads, and after all the remotes are destroyed I need it to cut back on. Oh, also I was going to put a forcefield on the door they came through so they would be trapped, but after the droids are destroyed that has to come down too. Where could I find a cog like that, or could someone make it for me? Thanks,

-KotL_Xavier
Stand firm in your faith, or you will not stand at all. -Isaiah 7:9
2002-03-14, 11:44 AM #2
How does this sound; Forget about the remotes existing on startup, and use a enemy generator? [http://forums.massassi.net/html/confused.gif]

Code:
#03/2002 GBK
Symbols
Message Activated
Message Timer
Thing Ghost
Surface Switch
Template Ene_type
End
Code
Activated:
If(Getwallcel(Switch) != 0) Stop;
AIsetfiretarget(Creatething(Ene_type, Ghost), Getsourceref());
Setwallcel(Switch, 1);
Settimer(1.5);
Stop;
Timer:
Setwallcel(Switch, 0);
Stop;
End


Untested, but should work.

 

Credit me. [http://forums.massassi.net/html/biggrin.gif]

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-14, 12:21 PM #3
Thanks! I will try it tonight. BTW if you wanted to beta test it you are welcome to test the very early beta. if you do, e-mail me and I will give you a link to my site where i have the beta up.
Stand firm in your faith, or you will not stand at all. -Isaiah 7:9
2002-03-14, 12:27 PM #4
Umm, one question, How do I make this cog code work in my level? I know it can be made in notepad, but how do I import it in jed? Thanks,

-KotL_Xavier

------------------
Denn unser Kampf ist nicht gegen Fleisch und Blut, sondern gegen die Gewalten, gegen die Mächte, gegen die Weltbeherrscher dieser Finsternis, gegen die Geister der Bosheit in der Himmelswelt.
Stand firm in your faith, or you will not stand at all. -Isaiah 7:9
2002-03-14, 1:17 PM #5
just paste it in an empty notepad textfile and save it as bla.cog. Make sure you have selected "All files" in the dropdown list.
Then place it in your project directory, and in jed, hit f7 and click on add cog. Choose your cog and fill in the fields you need, then hit refresh and you are done.
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-03-14, 1:54 PM #6
k, thats what I figured, I did that but it did not work. hmmm, I will attempt to figure it out tonight.
Stand firm in your faith, or you will not stand at all. -Isaiah 7:9

↑ Up to the top!