Closed ohlidalp closed 6 months ago
I ended up adding the stalk prop animation (requested by Mark on Discord; the reason for starting this PR) as a separate source signalstalk
, although originally I intended to stuff it into the dashboard system.
For the demo I ussed arrow mesh as a stalk :)
7,3,6, 0.81, 0.75, 0.04, 0,0,-90 arrow2.mesh
add_animation 25, 0, 0, source: signalstalk, mode: x-rotation
This allows the modder to use any input source from the dashboard system (https://docs.rigsofrods.org/vehicle-creation/making-custom-hud/#input-sources) to be used as input source for prop animation (https://docs.rigsofrods.org/vehicle-creation/fileformat-truck/#add_animation).
The new source name is 'dashboard' and the data link is specified by 'link: ' argument.
Below is an example showing 2 ways to have parking-brake animation: the old direct source and the new method via dashboard:
The screenshot shows it in action. Test mod is attached below. dashpropboard.zip