Re: Special door cog....psuedoy-code sorta....is this what you want?


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]

Posted by booto on April 24, 1998 at 10:11:54:

In Reply to: Special door cog.... posted by Vodo on April 23, 1998 at 18:54:29:

: I need a door cog that would do the following:

: When you hit the switch once, the door would open. The door would not close again until the switch is hit again and the door would not open again until the switch is hit one more time etc.

: Could you please HELP ME!!!!!

: Thanx

Yeah - i can help
Explain step by step what u want to do
is this it?(psuedocode)


dim int open;

:Press switch one
if open = 0 then
{
opendoor(door1);
open = 1;
return;
}

if open = 1 then
{
closedoor(door1);
open = 0;
return;
}
end





Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ The Massassi Temple Message Board ]