Animations - basic information

Das Forum befindet sich im reduzierten Betrieb. Die Addon- und Supportforen bleiben weiterhin verfügbar.
Bitte beachte, dass OMSI nicht mehr weiterentwickelt wird. Ein Teil der Entwickler widmet sich inzwischen der Entwicklung eines neuen Simulators. Weitere Informationen zum LOTUS-Simulator findest Du hier.
Ein communitybetriebenes Nachfolge-Forum wird hier verlinkt, sobald es gegründet und bereit ist.
  • I'm trying to create a nice little mod for the MB Sprinter 412 bus.


    To do that i need to make some changes in the door animations. What i actually try to do is to
    change the front door (not side door) to open when the door opening button is pressed.
    That requires to change the animations settings for the door. I couldn't find anywhre a manual for the animations.


    The slide door setting is like this:


    [mesh]
    Sprinter\sd\door_pass.o3d


    [matl]
    kuzov.dds
    0


    [matl_envmap]
    envmap.bmp
    0.03


    [newanim]
    origin_rot_x
    1
    origin_rot_z
    -90
    anim_trans
    door_1
    -0.94


    [newanim]
    origin_rot_x
    -90
    anim_trans
    door_1_hub
    0.1


    Question 1:
    What are those figures and lines under [newanim]?
    If the animation is a rotate, are the figures rotation in degrees?
    There seems to be also a variable there (like door_1) and some value under it. What is that value?
    What does the variable actually do?



    So i'd like to get this door to work when the button is pressed:


    [mesh]
    Sprinter\door_2.o3d


    [matl]
    kuzov.dds
    0


    [matl_envmap]
    envmap.bmp
    0.03


    [mouseevent]
    Door_0


    [newanim]
    origin_trans
    1.048
    2.4
    0
    origin_rot_y
    -90
    anim_rot
    door_0
    90


    Question 2:
    I first tried to use that door_0 variable and the door script which is meant for the slide door (quite directly from a MAN bus of M&R).
    In that case the animation went crazy. Then i changed it to use the door_1 variable as used in the slide door model if this bus.
    Now the issue is that the door works and when you open it also the door open sound is played correctly at the same time when the door opens,
    but when you press the button again to close the door, the sound is played first and then the door closes. How do i need to change the animation
    settings to get this to work? The animation itself is extremely simple, just turn the door 90 degrees.



    -Welbus