LVZ/LVL Questions - Manual Doors? wEaViL - Mon Jan 12, 2004 6:58 am Post subject: Manual Doors?
Hmm eyes hurt from searching so imma just post this one. Ok I just made a new map and it has some tiles I have placed in certain places to keep people out or let in when I type *objon and off. I wrote down all the x and y coords for each tile and the index for them too... I was reading the lvz ini file but it just messed me all up... what I want to know is how to make it so that I can control these doors. I want object 1 to control 2 diff doors for letting piolets in and out and object 2 to allow and dissallow piolets from going into my safety areas. This is prob a easy thing but I dont understand it.... music and images are a snap lol
Dr Brain - Mon Jan 12, 2004 9:13 am Post subject:
You use the
?set door:doormode=some_number
where some_number is from 0 to 255. Each door tile represents 1 bit. You will almost certainly need a bot to do what you want, unless you happen to run ASSS.
wEaViL - Mon Jan 12, 2004 10:11 am Post subject:
Someone shoot me now... Know of a good bot to use for it? lol
50% Packetloss - Mon Jan 12, 2004 11:22 am Post subject: http://forums.minegoboom.com/viewtopic.php?t=2082
Im not sure if the bot works, i didnt really play with it too much.
This is the formula in c++ for doors
if((doorState & 255) | (1 << i))
where doorstate is the current # that the door is and i is the number of the door you wish to turn on
doorState = mode;
}
SuSE - Mon Jan 12, 2004 12:53 pm Post subject:
there's a built-in 'calculator' in FACTS for people that don't like to think
wEaViL - Mon Jan 12, 2004 2:35 pm Post subject:
I like to think... I just been doing so much of it lately that my brain has went out on vacation lol Thx man
Smong - Mon Jan 12, 2004 2:45 pm Post subject:
I think to turn off a bit you XOR the number (might be wise to | first just to make sure it was switched on in the first place as ^ toggles the bits).