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 door cog
Need door cog
2001-06-23, 3:12 AM #1
I need a modification of the stanadard door cog... so that when you kill an enemy (thing) it will open a door, otherwise the door will say "locked" when you try to activate it.

------------------
Visit my site!
www.snerdcomic.homestead.com
-If women don't find ya handsome, they'll at least find ya handy!-
Jed this, Jed that..it enough to drive you nuts!!
Fools!! I'll Destroy them all!!!!
The Situation:
The Sv_SetBrushModel: Null error has occurred in my map. This means that somewhere in my level, there is a paper-thin prush that needs to be deleted. There are 2888 brushes in my level. That's chances of 1/2888 of finding the correct brush. The statistics say I have a .035% chance of finding it.
Did I find it?
You bet I did.
2001-06-24, 6:43 AM #2
Here you go SN. [http://forums.massassi.net/html/smile.gif]
Code:
# Jedi Knight Cog Script 
# 
# SNkillerdoor.cog 
# 
# When badguy is fragged, door1 moves 
# 
#  
# 
# Edited by Lt_Greywolf
# 

symbols

message      killed                                                                                           
flex         speed=1.5                                                        
thing        door1                                                            
thing        badguy               linkId=5
int	      deaths=0		local                                                         
end                                                                           

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

code
killed: 
If(GetSenderId() == 1)
deaths = deaths+1;
if(deaths == 1)
MoveToFrame(door1, 1, speed); 
return; 
end 


------------------
The only way to live a good life is to act on your emotions.
2001-06-24, 6:46 AM #3
Thanx again, Lt!

------------------
Visit my site!
www.snerdcomic.homestead.com
-If women don't find ya handsome, they'll at least find ya handy!-
Jed this, Jed that..it enough to drive you nuts!!
Fools!! I'll Destroy them all!!!!
The Situation:
The Sv_SetBrushModel: Null error has occurred in my map. This means that somewhere in my level, there is a paper-thin prush that needs to be deleted. There are 2888 brushes in my level. That's chances of 1/2888 of finding the correct brush. The statistics say I have a .035% chance of finding it.
Did I find it?
You bet I did.
2001-06-26, 3:05 PM #4
Oops, i made a mistake in my request, sry....

I actully need the door to open automatically, and btw, that cog, you gave me Lt_Greywolf...it dosent work... [http://forums.massassi.net/html/frown.gif]

------------------
Visit my site!
www.snerdcomic.homestead.com
-If women don't find ya handsome, they'll at least find ya handy!-
Jed this, Jed that..it enough to drive you nuts!!
Fools!! I'll Destroy them all!!!!
The Situation:
The Sv_SetBrushModel: Null error has occurred in my map. This means that somewhere in my level, there is a paper-thin prush that needs to be deleted. There are 2888 brushes in my level. That's chances of 1/2888 of finding the correct brush. The statistics say I have a .035% chance of finding it.
Did I find it?
You bet I did.

↑ Up to the top!