Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
I have several sensors on my ship and they are grouped under the name "ThreatSensors". What I would like to do with them initially is this: When any of the sensors detect a threat, I would like a group of lights (grouped under "StatusLights") to turn red, and another group of lights (grouped under "Ceiling-Wall-Lights" to be dimmed about 50% so that the overall lighting is red. I would also like to be able to turn on my defence system (my turrets) under the group name "WelcomeParty". Of course, when the sensors no longer detect the threat I would like to return everything back to the way it was - Red lights turned to Green, Regular Lights back to their set intensity, and turrets turned back off.
To most, this would be simple, but I am just not grasping the programming and how to get states from the devices. I am hoping that seeing a code block to do the above will help me to get a grasp of how to do more with other items.... (I am a big fan of sub grids
Thanks in advance to anyone who takes the time to educate this old dog.
What have you tried so far? It helps to start out with something simple. Can you set up one sensor to activate the EA programming block with an argument that will reference a code block on an LCD? Have the code block turn on a light when it is used. This is a good place to start. Have you looked at the guide?
Posted on Reddit: https://www.reddit.com/r/spaceengineers/comments/evctjo/sharing_my_easy_automation_2_script/
Images: https://imgur.com/gallery/xWKZq9d
Pastetbin (the script): https://pastebin.com/iZzDMwnv
Timer block's is painful and space taking option.
After searching Steam workshop I stumbled Easy Automation 2.
So here it is:
Workshop: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1981564284
Pastetbin (script): https://pastebin.com/qYMnA7aZ