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 → Trooptran Cog?
Trooptran Cog?
2003-01-03, 3:19 PM #1
I'm making a level where trooptrans fly across a canyon. What cog should I use for the trooptran to move. I prefer the trooptran to be active by hitting a switch. Someone please help me.
2003-01-03, 3:36 PM #2
Set up some frames in your level of whre you want them to fly, and use a moveframe cog.
-Hell Raiser
2003-01-03, 3:37 PM #3
Another guy with a cog question, it must be my lucky day. [http://forums.massassi.net/html/tongue.gif] This is simple, watch the pretty transport move when you use this cog. [http://forums.massassi.net/html/wink.gif] Also note use of code tags
Code:
# Jedi Knight Cog Script
#
# Moves the transport to the last frame by hitting a switch
#
# [DP]
#

symbols
thing                   transport                           nolink
surface                 switch
sound                   wav0=Activate02.wav
flex                    speed
int                     numframes
int                     done=0                              local

message                 activated

end

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

code

Activated:
   If(done) Return;
   done = 1;
   SetWallCel(switch, 1);
   PlaySoundPos(wav0, SurfaceCenter(button), 0.6, -1, -1, 0);
   MoveToFrame(transport, numframes-1, speed);
   Return;

end

Have a nice ride. [http://forums.massassi.net/html/tongue.gif]

edit - opps, [http://forums.massassi.net/html/redface.gif] updated.

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

The Magician Saber System.

[This message has been edited by Descent_pilot (edited January 04, 2003).]
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms

Completed
Judgement Day (HLP), My level pack
2003-01-03, 6:29 PM #4
Well, DP, the problem with that cog is, he is limited to having only one frame. That sucks. That means no banking, no turning, no loop-de-loops, which are the whole point of troop-trans!
And when the moment is right, I'm gonna fly a kite.
2003-01-04, 4:13 AM #5
At least it's legible.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2003-01-04, 6:17 AM #6
What are you implying?
And when the moment is right, I'm gonna fly a kite.
2003-01-04, 11:22 AM #7
Only the obvious.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2003-01-04, 12:48 PM #8
My code is plenty legible. If you have the capacity to read it, that is.
And when the moment is right, I'm gonna fly a kite.
2003-01-04, 1:15 PM #9
Emon, can you even cog? If no, don't annoy any coggers. If yes, you shouldn't insult us, tease us lightly, you can, but tread lightly on that.

------------------
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
2003-01-04, 1:43 PM #10
Of course I can COG. I did a lot of COG work for the Army TC before it bombed.
Bassoon, n. A brazen instrument into which a fool blows out his brains.
2003-01-04, 1:58 PM #11
Then either post something relevent to a thread besides your arrogant "OMGZ I"M BETTER THAN YOU" comments, or promptly stfu.
-Hell Raiser

↑ Up to the top!