Space Engineers

Space Engineers

评价数不足
CAT Custom Turret Rotor Slaving
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
1.701 KB
2015 年 2 月 14 日 上午 9:01
2015 年 3 月 6 日 下午 2:14
5 项改动说明 ( 查看 )

订阅以下载
CAT Custom Turret Rotor Slaving

在 Loues.S.Cat 的 1 个合集中
CAT Scripts
12 件物品
描述
A script that tracks the angle of two Master rotors and creates a volocity for each of the slave rotors based on the diffrence between their current angle and the appropriate Master Rotors angle. The effect is that the slave rotors will move toward the angle of the master rotors so if you adjust the angle of the master rotors the slaves will follow!
It is useful for building custom turrets, where one such turret can control the targeting of many.

>> Use multiple slave rotors. You can have as many [RS1], [RS1i], [RS2] and [RS2i] tagged rotors as you need.
>> There should be only one of each of the [RM1] and [RM2] rotors.
>>The difference in angle between the rotor with tag [RM1] and the slave rotors [RS1] and [RS1i] rotors is converted to a velocity and applied to the slave rotors.
>>The same is done for [RM2] and the slave rotors [RS2] and [RS2i] rotors.
>>The result will be that all the rotors maintain a similar angle allowing them to be used in custom turrets.
>>This script is very basic and unlikely to be directly useful. It is indented to be a starting point for further development.
热门讨论 查看全部(2)
6
2018 年 3 月 1 日 下午 7:39
How to use this script
Loues.S.Cat
0
2015 年 3 月 6 日 下午 2:36
Copy Paste Version
Loues.S.Cat
24 条留言
Loues.S.Cat  [作者] 2021 年 7 月 26 日 下午 10:13 
This is very old. I will have a look at it again when I have the time, for now I think I will just unlist it.
Turret problems 2021 年 7 月 26 日 下午 7:56 
Im currently trying to user this to slave a MART turret to an exterior rotor turret, the script doesnt seem to run correctly, is there a new version?
Keatosis 2018 年 3 月 1 日 下午 7:39 
Thanks
Loues.S.Cat  [作者] 2018 年 2 月 27 日 下午 3:32 
Gods this is so old...
I'll fix it as soon as I can, but there are better turret scripts out there now.
Keatosis 2018 年 2 月 18 日 上午 11:51 
Doesn't work, what am I doing wrong?
Djelle 2016 年 9 月 13 日 下午 6:53 
Just what I needed. This script solves several problems with my manned turret. My turret is front heavy. So it was very uneven to stear in gravity. I made a simple well balanced main turret of 2 rotors + Remote + 2 x gyros. And a camera on the real (slave) turret. So I can stear the turret remotely. Also, it was imposible to rotate it (yaw) when pointing directly up. I solved this by ofsetting the pitch by 45. So the (simple) main turret can pitch -45 to 45 which is translated to 0 to 90 on the real turret. Works like a charm :steamhappy:

U have a bug in ur code. Probably a leftover line of code which I don't see a use for.
In line 44: "blocks[e].SetValueFloat( "Velocity", 0 );"
It sets ALL rotors to 0 :steamfacepalm:

Keep up the good work.
mrbojinkles 2015 年 8 月 28 日 上午 11:32 
You've done it again you awesome code-master you! I'd love to have an option to have the tagged rotor's angle shown in its name, because my rotor placement is sloppy, and I have to add adjustments to the script.
Loues.S.Cat  [作者] 2015 年 6 月 8 日 上午 7:14 
The fastest you can set a timer to work is to trigger itself rather than to start itself. that lets the script respond very rappidly.
You can do that with this script too. It is how I used it.
kennet0508 2015 年 6 月 7 日 下午 7:09 
Btw, have you tested CMDR Bad_Idea's Turret system?

- http://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=378793632

Im curious what makes his rotors move so instant and on track, as it makes small turrets more viable

it seems he has set up the timer block to move faster than its supposed to, could this be implemented into your script? would that mess up with the ability to slow down the rotor movement you implemented? etc

with the setup you have where you can slow down the rotors is Key in my newest Prototype, where im making a set of a 4 huge engine setup on rotors, but the size makes it impossible to use without slowing down the rotors
MrClifford 2015 年 6 月 6 日 下午 1:57 
thats what i have done its even on reapet with a timer