Cabview controls for generic items
#11
Posted 14 December 2021 - 06:08 AM
I have only managed to get it to work by naming the parts in the 3D cockpit like this:
Switch: ORTS_GENERIC_ITEM1:0:0
Movable item: ORTS_GENERIC_ITEM1:0:1
But the problem is that the item's animation only supports 1 frame, so I'm sure there must be another way for it to work.
On the other hand, it's not clear to me what the numbers associated with the sound events are.
Thank you very much.
#12
Posted 14 December 2021 - 08:16 AM
The two generic items are two-state, and the sound triggers are activated when there is a state transition.
If you can describe what your purpose is with these generic items, maybe it's easier to me to provide you the appropriate hints.
#13
Posted 14 December 2021 - 08:24 AM
It's very simple: a switch in the 3D cab that, when pressed, sounds, and a piece moves, which, if possible, also sounds when it moves. I can't get it to work using the name for the moving part, and I don't know what the numbers of the sound triggers in the sms file are either...
#14
Posted 14 December 2021 - 08:42 AM
The associated trigger numbers are listed in the first post.
In the meantime the feature has been approved and will be present in next official Testing release.
#15
Posted 14 December 2021 - 08:53 AM
It is indeed a part that should move when the switch is pressed.
I can't find any further explanation in the manual on GitHub either.
The numbers of the sound triggers are 240,241,242 and 243? I'll try them....
#16
Posted 14 December 2021 - 09:33 AM
#17
Posted 14 December 2021 - 09:43 AM
#18
Posted 14 December 2021 - 10:00 AM
#19
Posted 14 December 2021 - 11:49 AM
VAPOR3D, on 14 December 2021 - 09:43 AM, said:
No, the smooth movement is possible only for items in the locomotive's .s file, and not for items in the 3D cab .s file. I don't see solutions for your sunshield (which indeed is a nice idea) with the present feature. What you could have is only a moving sunshield seen from the outside, by adding its automation to the locomotive's .s file.
#20
Posted 14 December 2021 - 12:39 PM
Smooth animation is not possible in the 3D cab. Except for the mirrors and wipers, that's why I thought it would work in the 3D cab as well.