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 → Hey GBK how about this?
Hey GBK how about this?
2001-11-08, 5:10 PM #1
heh, could you run me up a cog that makes a door open when 2 players stand in a sector (or on a surface) at the same time?

------------------
---
I know you believe you understood what you think i said, but iam not sure that you realize, that what you herd, is not what i ment.
2001-11-08, 6:02 PM #2
Sounds interesting, I dont have the time now, Ill get to it tommorow morning.

------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-11-08, 7:28 PM #3
ok thanx.

------------------
---
I know you believe you understood what you think i said, but iam not sure that you realize, that what you herd, is not what i ment.
2001-11-09, 5:18 AM #4
Ahh, coop levels. Gotta love em...


 

# 11/2001 GBK
Symbols
Message Entered
Sector Switch
Int Required=2
Thing Door
Flex Door_movespeed=4.0
Int Done=0 Local
End
Code
Entered:
If((Getsenderref() == Switch) && (Getsectorplayercount(Switch) >= Required) && (Done==0)) {
Movetoframe(Door, 1, Door_movespeed); Done=1;} Stop;
End

 

It works, I tested it. [http://forums.massassi.net/html/biggrin.gif]


The only critical variable here is 'Required'. That defines the number of players that have to be in the 'Switch' sector before the door will open.

BTW, the door stays open...



------------------
Success is the inverse relationship between effort, gain, and loss.
And when the moment is right, I'm gonna fly a kite.
2001-11-09, 12:31 PM #5
Please keep 1 on 1 conversation via email.

------------------
http://millennium.massassi.net/ - Millennium

↑ Up to the top!