Space Engineers

Space Engineers

28 ratings
Jump Drive API
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
File Size
Posted
Updated
651.027 KB
12 Feb, 2022 @ 12:52pm
12 Feb, 2022 @ 5:29pm
2 Change Notes ( view )

Subscribe to download
Jump Drive API

Description
This mod allows scripts to use Jump Drives. Currently, timers can jump to a target but only scripts can set the target.

See the example script here.

API
The Jump Drive can be accessed via terminal actions and properties.
  • ScriptJumpTarget - Vector3D? - Property that stores the target for the ScriptJump action.
  • ScriptJump - Action that jumps to the target coordinates stored in ScriptJumpTarget.
  • AbortJump - Aborts any jump that is currently pending.
  • JumpTarget - Vector3D? - Property to get the target that the user put into the terminal of the jump drive.

Source Code
https://github.com/austinvaness/JumpDriveAPI

Donate
To support my work, you may use Paypal[www.paypal.com]
13 Comments
SilverFoxSpectre 10 Dec, 2022 @ 2:38am 
Is there a script or other method in which the auto jump can simply go straight forward as per default? I'm making a sequenced jump for a carrier where one button closes all hatches and such, plays some warning sounds, and then after about a minute or two actually jumps.
Krypt 27 Sep, 2022 @ 5:53am 
Sorry, not tested yet. But I can say, it jumps successfully if the detected object is a static grid
avaness  [author] 15 Sep, 2022 @ 1:21pm 
You wont see new toolbar actions on anything except button panels, timers, and scripts.
avaness  [author] 15 Sep, 2022 @ 1:20pm 
Does it work if you use the example script I provided?
Krypt 14 Sep, 2022 @ 10:38am 
Trying to use this mod:
- I don't see new action as tolbar actions
- Unable to make ship jumt using script

Code I using:
```
var rawProp = jump.GetProperty("ScriptJumpTarget");
Log.Write(rawProp);
var castedProp = rawProp?.As<Vector3D?>();
Log.Write(castedProp);
castedProp?.SetValue(jump, Marker.Value.Item3);

var action = jump.GetActionWithName("ScriptJump");
Log.Write(action);
action?.Apply(jump);
```

All 3 lines are present in log and have values as expected, but nothing happens

Marker.Value.Item3 is a Position property of raycast result

In this partircular case it is an asteroid, so, the point is inside of asteroid.
In this case vanilla game allows to jump, but places ship short of ~1.5km to the point
PF28 12 Aug, 2022 @ 10:18pm 
The script using the API works fine but the timer can't seem to read the GPS coordinates
Digi 5 Jul, 2022 @ 11:09pm 
@CTH2004
Probably never, keen intentionally made the jumpdrive to require player input. Why? only they know and they ain't saying =)
BoompaBlubbah 26 May, 2022 @ 8:32am 
Adding this to my Torch server right now.
VANO_03_VOIN 10 Apr, 2022 @ 12:27am 
i wait it whole life! THanx!
CTH2004 13 Feb, 2022 @ 1:13pm 
Nice! When will this be vannilla?