Space Engineers

Space Engineers

评价数不足
Aligned Weapon Trigger
2
   
奖励
收藏
已收藏
取消收藏
标签: other_script
文件大小
发表于
更新日期
379.193 KB
2022 年 12 月 13 日 上午 6:13
2022 年 12 月 18 日 上午 5:04
2 项改动说明 ( 查看 )

订阅以下载
Aligned Weapon Trigger

描述
The script allows making sequential-firing weapon assemblies.

It has two main functions:
- trigger fire on a weapon that is aligned with a reference block
- control rotors during allowed firing

Script would fire the barrel that is lined up with a reference block (welder or timer).

It also sets up rotors and resets them on demand.

Add a rotor and weapons to a group containing PB. Add welder block to the same group. The welder should be NOT lined up with a rotor, but be placed higher, lower, etc relative to rotor axis.
Imagine a clock with center at the rotor, and the clock hand would be the ref block position. Then the script would allow firing for a gun that matches clock hand. It can be 2+ guns if you place them on top of each other.

Use argument 'reset-rotors' to make sure script sees them and to reset them to appropriate starting position.

Add a cockpit, then use welder from its' toolbar. LMB welder click would trigger rotary action and firing.

Alternatively, if you are making a custom gun for the AutoPillock drone, replace the welder with a timer (and DISABLE it before running the script or it would fire immediately). Refer to APck building guide for more info. Don't forget to add the timer to this script group.

For higher RPM you can make assemblies that are placed in a line. The reset-rotors command would attempt to set their phase offsets so they won't shoot each other.

Large grid two-stack opposite scheme example here:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2753329574

Small grid cannon assemblies fully integrated with APck example, Draken GDI:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2903404372

PB Arguments reference:

reset-rotors - force rotors into initial position with phase offset
fire - toggle fire
fire.On - enable fire
fire.Off - disable fire
6 条留言
cheerkin  [作者] 4 月 1 日 上午 8:45 
There is no such feature yet.
- trigger a timer - I can probably add that
- hold until it's fired - it's impossible to know in a script when the gun actually fired. The only way I can think of is adding a pre-configured delay
Based_Stickman 3 月 31 日 下午 7:20 
is there more documentation for this trying to set it up so it triggers a timer and not a weapon and that it will hold that barrel until its fired
cheerkin  [作者] 2 月 1 日 上午 3:32 
Most guns should work fine. There are may be issues with railguns and autocannons timing due to how they are implemented in the game. The welder or timer are the only intended way of telling the script where they should fire.
CaptainDuckFart 1 月 31 日 下午 4:49 
can you controll the angle at which the guns fire relative to the rotor besides the placement of the welder? my guns dont seem to line up properly in the barrel
cheerkin  [作者] 1 月 30 日 下午 1:44 
Yes
CaptainDuckFart 1 月 30 日 下午 1:17 
does the script allow the guns to be placed on multible subgrids on one rotor?