forked from RigsOfRods/rigs-of-rods
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎮 Added prop animation source
dashboard
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: ``` ; STANDARD: 7,3,6, 0.125, 0.68, -0.02, -90,0,0 beacon.mesh add_animation 180, 0, 0, source: parking , mode: x-rotation ; DASHBOARD: 7,3,6, 0.12, 0.15, -0.02, -90,0,0 redbeacon.mesh add_animation 180, 0, 0, source: dashboard, mode: x-rotation, link:parkingbrake ```
- Loading branch information
Showing
6 changed files
with
128 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters