BVEStation Forums

BVE => BVE/OpenBVE Support => Topic started by: F train fan on January 13, 2011, 11:30:53 pm

Title: what is the code to open and close doors in openbve like the R153
Post by: F train fan on January 13, 2011, 11:30:53 pm
what is the code to open and close doors in openbve like the R153
Title: Re: what is
Post by: Smooth23 on January 13, 2011, 11:35:24 pm
F5 to open left door
F6 to open right door
Title: Re: what is
Post by: F train fan on January 13, 2011, 11:40:24 pm
I know that I meant the code to make the animation of the doors actually opening and closing I already know the keys to do it
Title: Re: what is
Post by: coneyislandDFNQ on January 22, 2011, 11:28:34 am
I know that I meant the code to make the animation of the doors actually opening and closing I already know the keys to do it

Actually its serveral sets of codes. Take a look at the .b3d files in the cars folder of the trainset. then i think either the train.dat file of the panel.cfg file holds the place where the coding is.
Title: Re: what is the code to open and close doors in openbve like the R153
Post by: error46146 on January 25, 2011, 10:33:52 pm
That requires you to program in animations for openbve.

Learn more here:
http://openbve.trainsimcentral.co.uk/develop/object_animated.html (http://openbve.trainsimcentral.co.uk/develop/object_animated.html)

I cannot figure that math out lol its sad that it comes to the point where I have to pull out a calculator to program for bve -_-
Title: Re: what is the code to open and close doors in openbve like the R153
Post by: Bombardier01800 on January 25, 2011, 10:34:37 pm
A lot of the code will not be easy to understand... If I'm not mistaken, some of it is in .ANIMATED files
Title: Re: what is the code to open and close doors in openbve like the R153
Post by: error46146 on January 25, 2011, 10:38:18 pm
Basically it works like this;

the b3d files are the static objects
the animated files make them move.

Think of it this way: the b3d file is the door, the animated file is the motors that make the doors move.