Space Engineers

Space Engineers

Not enough ratings
Formation System - Rover Follower Fixed
   
Award
Favorite
Favorited
Unfavorite
Tags: autopilot
File Size
Posted
400.032 KB
21 Dec, 2024 @ 9:47pm
1 Change Note ( view )

Subscribe to download
Formation System - Rover Follower Fixed

Description
DISCLAIMER: I am not the original creator, I have just updated the script to work with the new wheel types in the game.
Check out the original creator Avaness
Original Script: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1714605940&searchtext=follower+reover



This is the follower script for my formation system. These scripts together allow you to set a ship to follow another in a specific position relative to the leader.

For best performance, the follower ships should have the same or more maneuverability than the leader ship.

Requirements
A remote control block on both the follower ship and the leader ship that points forward.
A radio antenna on both the follower ship and the leader ship.
Thrusters in all directions and enough fuel/power for all the thrusters.
Read the settings in the scripts.
Make sure the wheel blocks are the right side up! Putting them upside down will result in runaway rovers.

Commands
Commands can be run in the follower script argument box or you can transmit a command to the system by using the leader script argument box.
setoffset;x;y;z - sets the offset variable to this value
addoffset;x;y;z - adds these values to the current offset
stop - stops the script and releases control to you
start - starts the script after a stop command
starthere - starts the script and sets the offset to the current position.
reset - resets the offset and the default configuration to the default offset.
clear - forces the script to forget a previous leader when calculateMissingTicks is true
save(;name) - saves the offset to the specified configuration.
savehere(;name) - saves the current position to the specified configuration.
load;name - loads the offset from the configuration

Configurations
You can have multiple offsets for your ship. They are manipulated using the save, savehere, and load commands. The offsets for the saved configurations can be directly modified in the CustomData field of the programmable block. By default, the script will have a single 'default' configuration with the default offset. When you make changes to the CustomData directly, you should recompile the script to make the changes appear. CustomData will only be updated by the script when using the save and savehere commands. Warning: Any error in the CustomData will cause the entire script to reset.

Setting The Offset
( > denotes a command )
> stop
Fly the ship to where you want it
> starthere

OR

( assumes a config has been previously saved using save;name command. )
> load;name

OR

> setoffset;x;y;z


Source Code
https://github.com/austinvaness/FormationSystem/tree/master/FormationRoverFollower
1 Comments
Lord Foog The 2st 13 Jul @ 2:36am 
Thank you very much for keeping this script alive!