Space Engineers

Space Engineers

Not enough ratings
SmartHangar Sensor
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script
File Size
Posted
Updated
184.500 KB
26 Sep, 2014 @ 11:39am
11 Jan, 2015 @ 2:03pm
16 Change Notes ( view )

Subscribe to download
SmartHangar Sensor

Description
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 Comments
bigbadvoodoodady_1 22 Jan, 2016 @ 6:32pm 
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 22 Jan, 2016 @ 6:30pm 
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 22 Jan, 2016 @ 5:11pm 
Would there be a way to add in some simple functionaliting for turning on and off lights and speakers (sirens?)
Professor Nipples 23 Apr, 2015 @ 2:19am 
Simpler the better!
TaikoDragon  [author] 22 Apr, 2015 @ 11:48pm 
What is the community's wish on replacing the complex naming with a simple terminal group system of choosing all the appropriate blocks?
TaikoDragon  [author] 22 Apr, 2015 @ 11:05pm 
I haven't updated this for use with airtight hangar doors yet.
Professor Nipples 22 Apr, 2015 @ 6:11pm 
HI there, is this mod still updated? Does it work on the air tight hangar doors?
TaikoDragon  [author] 18 Nov, 2014 @ 4:18pm 
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 15 Nov, 2014 @ 4:11pm 
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  [author] 10 Nov, 2014 @ 12:33pm 
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?