Space Engineers

Space Engineers

评价数不足
SmartHangar Sensor
   
奖励
收藏
已收藏
取消收藏
Type: Mod
Mod category: Script
文件大小
发表于
更新日期
184.500 KB
2014 年 9 月 26 日 上午 11:39
2015 年 1 月 11 日 下午 2:03
16 项改动说明 ( 查看 )

订阅以下载
SmartHangar Sensor

描述
Simplify and secure your large door/gate management. This mod works with the sensor block to authenicate detected ships / players before activating.

Enable this on a sensor by adding the keyword "SmartHangar" to the name and a custom group name within square brackets i.e. "SmartHangar Sensor [MyGroupName]". Then add the group name and a velocity indicator in square brackets to each piston and rotor that should be reversed i.e. "MyRotor Left [MyGroupName:v+]" or "MyPiston [MyGroupName:v-]"

I've tested this against a DS but there can be some lag in response time.

For Sensors:
Syntax "[GroupName:TriggerModifer]"
Trigger Modifier can be left out or set to "Enemies" to have the sensor only trigger when there is enemies in the detection zone.

For Pistons and Rotors:
Syntax "[GroupName:VelocityIndicater]"
"v+" indicates the door is "opening" when the piston/rotor velocity/rpm is positive.
"v-" indicates the door is "opening" when the piston/rotor velocity/rpm is negative.

Example:
Sensor Name: "Front Door SmartHangar [FrontDoorGroup]" << this says when a friendly ship is detected, reverse all the pistons and rotors with "FrontDoorGroup" in their name.
Piston 1 Name: "Left Front Door Piston [FrontDoorGroup:v-]" << the v- tells the mod that when this piston's velocity setting is negative, the door is "opening" which allows the mod to smartly "open" and "close" the door.
Piston 2 Name: "Right Front Door Piston [FrontFoorGroup:v+]" << the v+ tells the mod that when this piston's velocity setting is positive, the door is "opening".

Example 2:
Sensor Name: "SmartHangar [HangarDoorGroup]" (Group Name is "HangarDoorGroup")
Rotor 1 Name: "Random Name [HangarDoorGroup:v+]" (This rotor will be set to positive RPM in order to open the door.
Piston 1 Name: "Other Random Name [HangarDoorGroup:v-]" (This piston will be set to positive velocity in order to open the door.)

--- Change Log ---
v1.0.5 Fixed issues with SE v1.064
v1.0.4 Fixed issue created by SE v1.060
v1.0.3 Update player detection code.
v1.0.2 Fixes for SE v1.054
v1.0.1 Fixes for SE v1.052
v1.0 Initial release
21 条留言
bigbadvoodoodady_1 2016 年 1 月 22 日 下午 6:32 
Ok... Also, does this require a programmable block, guessing it does, and timer, or did you somehow directly alter the code of sensors.
bigbadvoodoodady_1 2016 年 1 月 22 日 下午 6:30 
What's the name of the script in the "Scripts Screen"... just a hint, you may want to make it the exact same name as your Mod name... just sayin
bigbadvoodoodady_1 2016 年 1 月 22 日 下午 5:11 
Would there be a way to add in some simple functionaliting for turning on and off lights and speakers (sirens?)
Professor Nipples 2015 年 4 月 23 日 上午 2:19 
Simpler the better!
TaikoDragon  [作者] 2015 年 4 月 22 日 下午 11:48 
What is the community's wish on replacing the complex naming with a simple terminal group system of choosing all the appropriate blocks?
TaikoDragon  [作者] 2015 年 4 月 22 日 下午 11:05 
I haven't updated this for use with airtight hangar doors yet.
Professor Nipples 2015 年 4 月 22 日 下午 6:11 
HI there, is this mod still updated? Does it work on the air tight hangar doors?
TaikoDragon  [作者] 2014 年 11 月 18 日 下午 4:18 
No, one sensor can work for that. I'm am looking in issue where the detection area is not correctly aligned. is some directions.
Agamemnonas73 2014 年 11 月 15 日 下午 4:11 
yes i have a 2 parts door and using 2 rotors for each part.now if the doors are open if ill stand infront of them the rotors closing the doors and if im moving away the doors are opening.maybe i have to put 2 sensors also?thx for your help man :)
TaikoDragon  [作者] 2014 年 11 月 10 日 下午 12:33 
This script is meant to do the same thing. This uses a sensor to get the settings for detecting players and objects since that's what sensors are good at. What are the names of the sensor and rotors? It sounds like you want one sensor to open a 2 door opening?