Space Engineers

Space Engineers

Not enough ratings
Call Shuttle / Go Home - for SAMv2TC
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
538.597 KB
25 Nov, 2022 @ 5:27pm
26 Dec, 2024 @ 6:46am
5 Change Notes ( view )

Subscribe to download
Call Shuttle / Go Home - for SAMv2TC

Description
WHAT IS THIS?
Call Shuttle is a quick and simple set up for a button or toolbar position to send Remote Commands to any SAMv2TC controlled ship

HOW CAN I USE THIS SCRIPT?
  • "Call Shuttle" button for your base or mothership - easily calls your roving shuttle to your location (https://screencast-o-matic.com/u/OOim/call-shuttle-proof-of-concept)
  • "Go Home" button for every ship (set the default as your home connector - get there with one button push!)
  • Multiple buttons can be set up around the world or even on one base.

Great for "took the shuttle to start on a new base site, respawned at home base
=> CALL SHUTTLE!"


SETUP

Make a 'Go Home' button for your ship
  1. Edit the script and set 'shipname' in the configuration section as "" (empty - no need to type anything, we know the name of the ship!)
  2. Set the SAM name of the connector where you want to send the ship as 'connectorname' (the SAM.Name is a unique combination of grid name and Connector, so grid name is optional)

    Example:
    Your base name is HOMEBASE and you have a connector called SHIPCON
    "SHIPCON" is unique to world at ONLY this grid
    'connectorname' below can be SHUTTLECON

    Example:
    Same as above, but you have another base nearby that is named OTHERBASE and the connector SAM name is SHUTTLECON (not unique)
    'connectorname' MUST include the base/grid name so it will be "[OTHERBASE] SHUTTLECON"

  3. Create a button to send your ship 'home' by using the 'RUN default' of the Programming Block (see VIDEO for help):
    • on your toolbar in a ship or command seat
    • on a 'Big Red Button'
    • on any sort of block that has a 'button' (search for 'button' in the blocks you have in your game)
  4. Select your button to 'Go Home'!


Set up a 'Call Shuttle' button at your home base.
  1. Set the SAM name of your shuttle as 'shipname' below
  2. Set the SAM name of the connector where you want to send the shuttle as 'connectorname' below (the SAM.Name is a unique combination of grid name and Connector, so grid name is optional)

    Example:
    Your base name is FLATBASE and you have a connector called SHUTTLECON
    "SHUTTLECON" is unique to ONLY this grid
    'connectorname' can be SHUTTLECON

    Example:
    Same as above, but you have another base nearby that is named TALLBASE and the connector SAM name is SHUTTLECON (not unique)
    'connectorname' MUST include the base/grid name so it will be "[TALLBASE] SHUTTLECON"
  3. Create a button to call the shuttle by using the 'RUN default' of the Programming Block (see VIDEO for help):
    • on your toolbar in a ship or command seat
    • on a 'Big Red Button'
    • on any sort of block that has a 'button' (search for 'button' in the blocks you have in your game)
  4. Select your button to call the shuttle!

ADVANCED USE
You can use ONE PB for multiple 'Call Shuttle' buttons if you like!

  1. Create a button near the associated connector to call the shuttle, including the shipname and unique [gridname] connector when using the RUN command on the PB

    Example:
    Your shuttle name is SHUTTLE
    Your base name is FLATBASE and you have a connector called SHUTTLECON1 and another called SHUTTLECON2
    "SHUTTLECON1" and "SHUTTLECON2" are NOT unique to the world
    In the button, select the PB and RUN with the argument
    shipname=SHUTTLE, connector=[FLATBASE] SHUTTLECON1
    or
    shipname=SHUTTLE, connector=[FLATBASE] SHUTTLECON2
  2. Select the button to call the shuttle!