SEAT | Seat Entry/Exit Activated Timers
О материале
«SEAT | Seat Entry/Exit Activated Timers» — материал мастерской Space Engineers. Моды, чертежи кораблей, скрипты и миры для Space Engineers. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
SEAT | Seat Entry/Exit Activated Timers
Description
Howdy!
This script allows you to trigger a timer when a particular seat has been entered or exited. You can also specify different timers for entry and exit activation. This script works with seats, cockpits, remotes, beds and cryo bays; pretty much anything you can sit in.
Features
-
Simple setup
-
Low performance overhead
-
Can trigger timers on seat entry and exit
- NEW: Can also trigger timers on turret or custom turret controller entry/exit!
-
Per-seat timer configuration
-
Cute, animated running screens :D
Setup Instructions
-
Make a group named SEAT (all caps) that contains all the seats, turrets, and custom turret controllers that you want to add entry/exit timers to.
-
Place this script in a programmable block.
-
Open the custom data of each seat, turret, or custom turret controller in the SEAT group and set the names of the timers that should be triggered. Leave them blank if you don't want a timer triggered.
-
Recompile the code to process any Custom Data or group changes.
Repeat steps 3-4 until you have configured all your seats the way you want.
Custom Data Config
Programmable Block Custom Data
The programmable block running this script will be populated with the following custom data keys:
| Key | Valid Values | Description |
|---|---|---|
| Group name tag | string | Name of the SEAT group. |
| Draw title screen | true/false | Determines if the animated title screen will be drawn. |
Per Seat Custom Data
Each seat contained within the SEAT group will have the following config keys added to their custom data:
| Key | Valid Values | Description |
|---|---|---|
| Timer to trigger on entry | string | Exact name of the timer to trigger when this seat is entered. |
| Timer to trigger on exit | string | Exact name of the timer to trigger when this seat is exited. |
Author's Notes
This script was initially written to support my boy ToedPeregrine4 in his attempt to have immersive control seats with pop-down screens. Pushing buttons manually is for peasants, so I wrote this script to trigger a timer based upon if someone had entered or exited the seat. I was eventually convinced to clean up this code and release it to the public, hopefully y'all can find some neat things to do with it :)
And of course, thanks to my insane friends for helping me come up with a stupid name for this script!
Also, I made the sprites for the cute little running screen using the SESpriteBuilder tool that I developed: https://gitlab.com/whiplash141/spritebuilder/-/wikis/home. It may be of use to scripters trying to visualize and design sprites :)
- Whiplash141
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.