Space Engineers

Space Engineers

30 个评价
MArmOS V3.0 Example Turrets
   
奖励
收藏
已收藏
取消收藏
Type: Blueprint
文件大小
发表于
更新日期
547.426 KB
2017 年 4 月 25 日 下午 6:52
2017 年 9 月 1 日 下午 6:29
5 项改动说明 ( 查看 )

订阅以下载
MArmOS V3.0 Example Turrets

在 Timotei~ 的 1 个合集中
MArmOS V3.0 Examples
10 件物品
描述
This is an example of turret controlled by MArmOS.
You can find MArmOS here:
http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=767595187

Gatling turret Definition
var Prefix = "Turret1: "; var R1 = new Rotor( Name: Prefix+"Motor1", Axis: "Z", OriMode: 1 ); var R2_1 = new Rotor( Name: Prefix+"Motor2_1", Axis: "-Y", OriMode: 1 ); var R2_2 = new Rotor( Name: Prefix+"Motor2_2", Axis: "Y", OriMode: 1 ); var MyArm = R1 + R2_1*R2_2; new UserControl( Arm: MyArm, ReferenceFrame: R1, ReadKeyboard: false, ShipControllerKeyword: Prefix+"Controller", Softness: 1 );

Rocket turret Definition
var Prefix = "Turret2: "; var R1 = new Rotor( Name: Prefix+"Motor1", Axis: "Z", OriMode: 1 ); var R2_1 = new Rotor( Name: Prefix+"Motor2_1", Axis: "-Y", OriMode: 1 ); var R2_2 = new Rotor( Name: Prefix+"Motor2_2", Axis: "Y", OriMode: 1 ); var MyArm = R1 + R2_1*R2_2; new UserControl( Arm: MyArm, ReferenceFrame: R1, ReadKeyboard: false, ShipControllerKeyword: Prefix+"Controller", Softness: 1 );
5 条留言
3DogBrew 2020 年 5 月 28 日 下午 3:29 
I couldn't get this to work, the script compiles with several errors
gpedro178 2019 年 6 月 20 日 下午 7:18 
Arriving too late to help @Hellspark but maybe this comment will help someone else.

The problem you are encountering is due to the fact that you need to update the script in the PBs and also add the command "var MyController =" in front of the "new UserControl" line.

It has to look like this:

"var MyController = new UserControl( Arm: MyArm, ReferenceFrame: R1, ReadKeyboard: false, ShipControllerKeyword: Prefix+"Controller", Softness: 2 );"


This code error is also found in the script "2.2 Advanced Example" section but not in the page 4 "Advanced Definition Guide".
BroedipusRex 2018 年 11 月 25 日 下午 9:00 
Does this bypass the fact that SE only recognizes inputs from one cockpit per grid/non-connector sub-grid? If so that's awesome!
Hellspark 2018 年 11 月 21 日 上午 7:03 
when pasting in the programmable block gives out

"assembly not found. Please compie script."

Pressing recompile then does nothing... any help?
Damadark 2017 年 5 月 27 日 上午 7:18 
Timotei~ I have a request if I may. One other item I would love to have working from your MArmOS V3.0 script is a solar panel tracker that can reset the rotor and pistons to retract into a protected slot on a ship/base. I do use a excellent tracker but for use with meteors just doesn't work well. This is the script I use from Sigurd Hansen excellent solar tracking but I have no talent in coding to make it a retractable system also for meteor/attacker defense.
http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=367344570