Space Engineers

Space Engineers

30 lượt đánh giá
Jump Drive API
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Type: Mod
Kích cỡ file
Đã đăng
Đã cập nhật
651.027 KB
12 Thg02, 2022 @ 12:52pm
12 Thg02, 2022 @ 5:29pm
2 ghi chú thay đổi ( xem )

Đăng ký để tải xuống
Jump Drive API

Mô tả
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 bình luận
SilverFoxSpectre 10 Thg12, 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 Thg09, 2022 @ 5:53am 
Sorry, not tested yet. But I can say, it jumps successfully if the detected object is a static grid
avaness  [tác giả] 15 Thg09, 2022 @ 1:21pm 
You wont see new toolbar actions on anything except button panels, timers, and scripts.
avaness  [tác giả] 15 Thg09, 2022 @ 1:20pm 
Does it work if you use the example script I provided?
Krypt 14 Thg09, 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 Thg08, 2022 @ 10:18pm 
The script using the API works fine but the timer can't seem to read the GPS coordinates
Digi 5 Thg07, 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 Thg05, 2022 @ 8:32am 
Adding this to my Torch server right now.
VANO_03_VOIN 10 Thg04, 2022 @ 12:27am 
i wait it whole life! THanx!
CTH2004 13 Thg02, 2022 @ 1:13pm 
Nice! When will this be vannilla?