Space Engineers

Space Engineers

27 ratings
Defense system activation
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
359.150 KB
1 Jan, 2015 @ 10:00am
3 Jan, 2015 @ 3:07am
2 Change Notes ( view )

Subscribe to download
Defense system activation

Description
V 0.2

This script do :

- Stop antenna
- Stop Beacon
- Activate turret (interior, gatling and missiles)
- Close all doors



TODO
- Just reduce Antenna to 800m (range of turret)
- More things with light (red light etc...) that api doesnt allow for now

It's alpha test for the new mod programmation.
The code is clean, you can use it as example.

In the begin of the script, you have several variables allow you to choose what actions do.

Ex :

bool stopAntenna = true; //change to "false" for desactivate this option
bool stopBeacon = true; //change to "false" for desactivate this option
bool activateTurret = true; //change to "false" for desactivate this option
bool closeDoor = true; //change to "false" for desactivate this option
bool reduceLIght = true; //change to "false" for desactivate this option

This setting do all actions.

bool stopAntenna = false; //change to "false" for desactivate this option
bool stopBeacon = false; //change to "false" for desactivate this option
bool activateTurret = true; //change to "false" for desactivate this option
bool closeDoor = false; //change to "false" for desactivate this option
bool reduceLIght = false; //change to "false" for desactivate this option

This setting only activate turret.
16 Comments
kinngrimm 12 Mar, 2023 @ 12:02pm 
is this still working or has anyone seen something similar on the workshop?
CJLDonovan 22 May, 2019 @ 12:51am 
What I want is a scrip that sends the player a Ping if their is an Enemy signal in range, because Im blind af to signals in my area so if I get something on one of my relays Id like something to ping or tell me That "hay there is a (Ship type) here"
Celestite 5 Nov, 2016 @ 7:41am 
hello pounzer, by your computing abilities i figured you are good enough programer i figured you would like to join our faction? want to?
DenisED1 7 Oct, 2016 @ 1:24pm 
Why would you turn antenna off???? cuz then u dont detect the enemys anymore? or am I mistaking with something else now?
jimlore78 28 Oct, 2015 @ 7:00am 
if this was paired with an alarm script, that would play a repeated tone, that would be good, but also there should be a way to arm, for instance a wrong pin on a door
TR-YalnızKurt 5 Mar, 2015 @ 6:04am 
I need play sound and open red light.I need help script
Ben Snow 2 Jan, 2015 @ 6:17am 
Okay, sorry, I didn't know... I thought it's possible. It should be...
Pouzor  [author] 2 Jan, 2015 @ 5:53am 
The script API doesnt allow to activate/desactivate broadcasting for now :/ Only On/off and increase/decrease Radius
Ben Snow 2 Jan, 2015 @ 4:36am 
That's okay, but can't you stop broadcasting? It can hide the antenna while keeping receiving other signals...
Pouzor  [author] 2 Jan, 2015 @ 4:28am 
I dont want stop he antenna, i want reduce it to 800m for stay hide and turret range that all. I stop it now because i cant reduce to a specific value