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 another cog......
Need another cog......
2002-12-26, 2:27 PM #1
Its for SP, and i need a cog that makes a door open after 3 switches and 1 thing have all been activated. Nothing resets, just open the door once 3 surfaces and a thing have been activated.

------------------
Sanctum de la Mort
2002-12-27, 5:03 PM #2
I had nothing better to do. [http://forums.massassi.net/html/tongue.gif]

Code:
#12/2002 GBK
Symbols
Message Activated
Thing Door
Surface Switch0		LinkID=1
Surface Switch1		LinkID=1
Surface Switch2		LinkID=1
Thing Switch3
Flex Speed=4
Sound Beep
End
Code
Activated:
If(Getsenderref() == Door || Getcurframe(Door) != 0 || Ismoving(Door)) Stop;
If(GetsenderID() == 1) {
Setwallcel(Getsenderref(), 1 - Getwallcel(Getsenderref()));
Playsoundpos(Beep, Surfacecenter(Getsenderref()), 1, 0, 20, 0); }
Else { Setthinguserdata(Switch3, 1 - Getthinguserdata(Switch3));
Playsoundthing(Beep, Switch3, 1, 0, 20, 0); }
If(Getwallcel(Switch0) == 1 && Getwallcel(Switch1) == 1 && Getwallcel(Switch2) == 1 && Getthinguserdata(Switch3) == 1) Movetoframe(Door, 1, Speed);
Stop;
End


It SHOULD work. Go ahead and take my word on it, and quote me if youd like, but just remember that I said that it SHOULD work.
And when the moment is right, I'm gonna fly a kite.

↑ Up to the top!