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 → Cogz0rs
Cogz0rs
2002-02-20, 1:52 PM #1
Can somebody PLEASE make me a cog that does liek what was in Empire night club, make the sectors extra light flash between two specifiable light values at a specifiable rate. Thank you.

------------------
"Does that compute?

Or do I need to draw you a schematic!?"



[This message has been edited by Dash_rendar (edited February 20, 2002).]
2002-02-21, 5:44 AM #2
Haven't played that level, but this cog should do what you want:

Code:
# flashlight.cog
#
# Change a sector's light from one value to another.
#
# [SM]
#======================================================================#
symbols

message	startup
message	pulse

flex		light1
flex		light2
flex		delay
flex		fade

sector	flashsec

int		blink		local

end
#======================================================================#
code
#----------------------------------------------------------------
startup:
	SetPulse(delay);

Return;
#----------------------------------------------------------------
pulse:
	blink=1-blink;
	if(blink) SetSectorLight(flashsec, light1, fade);
	else SetSectorLight(flashsec, light2, fade);

Return;
#----------------------------------------------------------------
end


delay is the time to wait before changing the lights and fade is the light fade-in time.

There you go. [http://forums.massassi.net/html/wink.gif]

------------------
Each cog better than the next
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-02-22, 3:32 PM #3
U R TEST! COG R NO WORK!

------------------
"Does that compute?

Or do I need to draw you a schematic!?"
2002-02-24, 11:58 AM #4
The cog does work, and I did test it.

Try it again...

------------------
Each cog better than the next
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-02-25, 5:28 AM #5
Remember this cog works with sector lighting. Your level may have other lighting in the sector or you might not have calculated the lighting. It is not a problem with the cog.

------------------
Each cog better than the next
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-02-25, 1:44 PM #6
I know, i got it. [http://forums.massassi.net/html/smile.gif]

------------------
"Does that compute?

Or do I need to draw you a schematic!?"

↑ Up to the top!