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 → Need a simple thing removed cog.....
Need a simple thing removed cog.....
2002-08-02, 11:05 PM #1
Im on a cog forum rampage again!

Ok, i need a simple cog that goes like this.

When a thing is removed, (destroyed like one of the fule tanks) anothing thing moves from frame 0 to frame 1 and never goes back. Ever. Forgotten. Easy enough?

Thanks in advance. You will be given credit.

------------------
Sanctum de la Mort

[This message has been edited by Dash_rendar (edited August 03, 2002).]
2002-08-03, 2:07 AM #2
Code:
# Jedi Knight Cog Script
#
#
# [CaveDemon, 2002]
# 
#
# This Cog is Not supported by LucasArts Entertainment Co

symbols
thing		trigger
thing		movething
int		senderref		local
int		speed=4
message	damaged

end

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

code
damaged:
senderref = GetSenderRef();

if(senderref == trigger)
{
MoveToFrame(movething, 1, speed);
}


Return;
# ........................................................................................

end


haven't tested it, but when thing "trigger" gets damaged, thing "movething" moves to frame 1.

------------------
Uh-uh. I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kind of lost track myself. But being this is a .44 Magnum, the most powerful handgun in the world, and would blow your head clean off, you've got to ask yourself one question: Do I feel lucky? Well do ya, punk?
Last edited by mb; today at 10:55 AM.
2002-08-03, 3:21 AM #3
Try this.
Code:
# Jedi Knight Cog Script
#
# [DP]
#

symbols
thing           trigger
thing           movething               nolink
int             senderref               local
flex            speed=4
message         removed

end

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

code
removed:     Nolink on the the movething makes it not pass this message
   MoveToFrame(movething, 1, speed);
   Return;
end
Lot simpler. [http://forums.massassi.net/html/wink.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!