Space Engineers

Space Engineers

Not enough ratings
Toggle Stargate Iris
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
413.000 B
12 Feb, 2015 @ 3:18pm
22 Jan, 2017 @ 6:14pm
3 Change Notes ( view )

Subscribe to download
Toggle Stargate Iris

Description
THIS MOD REQUIRES THE STARGATE OR WORMHOLE PORTAL MOD TO FUNCTION!

This is an in-game script that demonstrates how to automatically activate the iris or shield during an incoming wormhole.

To use this script, add a Programming Block with either 'Stargate' or 'Portal' in the name, and it will automatically be executed when an incoming wormhole is activated and deactivated.

The gate name in the script is a placeholder. Just put whatever name you want in there. I thought it was obvious, but I also didn't place comments in this like the other script.

PSA 28 Nov 2019
There is a game bug, mods can no longer call PB scripts. It just fails silently.

There are two workarounds, one if you actually want a script, both use a Timer block as an intermediary:
1) Script based
  1. Place a new timer block
  2. Create a block group for the gate and the timer
  3. Add an action to call the PB with the "Incoming" or "Idle" argument, based on which behavior you want.
    Incoming for iris activation
    Idle for opening iris
2) Non-script
  1. Place a new timer block
  2. Create a block group for the gate and the timer
  3. Assign the "Iris On/Off" action from the gate, to the timer block, based on which you want
  4. Create a second timer block for the other action
29 Comments
Gwindalmir  [author] 28 Nov, 2019 @ 2:56am 
I just tested this out, apparently something in the game broke. Mods can no longer call PB scripts. It just fails silently.
The only workaround is to use a Timer block as an intermediary: Group the Timer block to the gate, then have the timer block call the PB with the "Incoming" or "Idle" argument to trigger it automatically again.
Scott Dark 17 Mar, 2019 @ 8:35pm 
@Phoenix, What would be required to get this script working again?
Bodyboarder2528 10 Mar, 2019 @ 5:16am 
do you have to use a universal gate?
Spartan-118 30 May, 2018 @ 2:37am 
will this still work?
Gwindalmir  [author] 22 Jan, 2017 @ 6:15pm 
I've updated the script. It now works with the most recent Stargate mod update.
DodoTheOldOne 18 Dec, 2016 @ 12:16pm 
i think its better to post here: since last big update, the script dont work for me.
Gwindalmir  [author] 30 May, 2015 @ 5:45pm 
@Badmoon, I can't reproduce it, would you mind sending your world file?
Gwindalmir  [author] 30 May, 2015 @ 3:04pm 
@Badmoon, ah, I misunderstood what you were saying, my apologies.
Hmm, I'll take a look, that is not supposed to happen.
Badmoon 30 May, 2015 @ 1:00pm 
That's what is happening to me for some reason.
Badmoon 30 May, 2015 @ 12:59pm 
But is it suppose to close the iris on outgoing wormholes about 5 seconds after activation?