Space Engineers

Space Engineers

评价数不足
TopLain's Extended Ingame Programming
   
奖励
收藏
已收藏
取消收藏
Type: Mod
Mod category: Script, Other
标签: ServerScripts
文件大小
发表于
更新日期
400.123 KB
2021 年 12 月 22 日 上午 4:07
2021 年 12 月 25 日 上午 11:40
3 项改动说明 ( 查看 )

订阅以下载
TopLain's Extended Ingame Programming

在 TopLain 的 1 个合集中
Laino's Space Engineers Mods
6 件物品
描述
Exposes additional functionality to ingame scripts.

If you'd like to see something added, just ask in the comments!

// ========== Universe ========== // Information about the Universe // ============================== Me.GetValue<float>("TopLain.Universe.MaxLinearVelocity"); // Maximum possible speed Me.GetValue<float>("TopLain.Universe.MaxAngularVelocity"); // ======= Center Of Mass ======= // Center of Mass, including or // not including connected grids. // See: GridLinkTypeEnum. // ============================== // Just the grid the programmable block is on: Me.GetValue<Vector3D>("TopLain.COM.Self.World"); // Same as you'd get from a IMyShipController Me.GetValue<Vector3D>("TopLain.COM.Self.Local"); // Local coordinates // COM including grids connected via rotors, pistons, suspensions: Me.GetValue<Vector3D>("TopLain.COM.Mechanical.World"); Me.GetValue<Vector3D>("TopLain.COM.Mechanical.Local"); // COM including terminal connections. i.e. rotors, pistons, wheels. Includes Mechanical connections: Me.GetValue<Vector3D>("TopLain.COM.Logical.World"); Me.GetValue<Vector3D>("TopLain.COM.Logical.Local"); // COM including connections which lock physics. i.e. connectors. Includes Logical and Mechanical connnections: Me.GetValue<Vector3D>("TopLain.COM.Physical.World"); Me.GetValue<Vector3D>("TopLain.COM.Physical.Local"); // COM including connections by rotor, piston, suspension and connectors if they transfer energy: Me.GetValue<Vector3D>("TopLain.COM.Electrical.World"); Me.GetValue<Vector3D>("TopLain.COM.Electrical.Local"); // COM including connections which lock physics, but do not connect terminals. Landing gear only: Me.GetValue<Vector3D>("TopLain.COM.NoContactDamage.World"); Me.GetValue<Vector3D>("TopLain.COM.NoContactDamage.Local"); // ============ Mass ============== // Mass, including or not including // connected grids. // See: GridLinkTypeEnum. // ================================ // Just the grid the programmable block is on: Me.GetValue<double>("TopLain.Mass.Self"); // COM including grids connected via rotors, pistons, suspensions: Me.GetValue<double>("TopLain.Mass.Mechanical"); // COM including terminal connections. i.e. rotors, pistons, wheels. Includes Mechanical connections: Me.GetValue<double>("TopLain.Mass.Logical"); // COM including connections which lock physics. i.e. connectors. Includes Logical and Mechanical connnections: Me.GetValue<double>("TopLain.Mass.Physical"); // COM including connections by rotor, piston, suspension and connectors if they transfer energy: Me.GetValue<double>("TopLain.Mass.Electrical"); // COM including connections which lock physics, but do not connect terminals. Landing gear only: Me.GetValue<double>("TopLain.Mass.NoContactDamage");
5 条留言
ThePropheticWarrior 2023 年 5 月 22 日 下午 6:06 
@Mad JimBob McJim: Either PARK or Mechanical Keybinds should work, if you haven't found them yet.
Hunter 2022 年 8 月 3 日 上午 12:53 
Hi I'm looking for a script that'll let me control wheels mounted on rotors with the use of W key and and S key for forward and back. Already using a script to control hinge steering on A and D. The the rotor wheels 'motors' are on a rotor roller rocker suspension setup - so wheels are on a sub grid.

Can this be done with Scrips?
золотое фондю 2022 年 7 月 6 日 上午 10:54 
can you add sex?
TopLain  [作者] 2022 年 4 月 20 日 上午 10:43 
Yeah but it's not in a state where it will work easily with any kind of ship you build. Specifically it still needs some optimizations for when a ship has a lot of thrusters (the calculations are quite intensive, so it's easy to run out of compute budget).

Haven't worked on it in a while, so I'm not sure what state this represents, but here is the script as it currently resides on my HDD, so you (or someone else) can keep working on it: https://gist.github.com/laino/eec4ed9e75be98e89db6a1bf6b04654a

I might get back into it myself at some point.

Also it requires the mod you're currently commenting on.
Peekofwar 2022 年 4 月 19 日 上午 9:10 
This is unrelated to this mod, but you made an in-game script that corrects thrusters when using Digi's Realisitc Thrusters mod,. right? Is it not ready to be uploaded yet, or did you upload it but haven't yet made it public?